How to verify a date range?

Hi all,
I have a form in a page that allow the user to select a date
interval
by selecting the start date and the end date.
Of course, the end date should be greater than the start
date.
But how can I check this in dreamweaver?
Is there a free behaviuor to do such thing?
Thanks in advance for any suggestion.
tony ;).

> It's really just simple date math using whatever server
side programming
>language you are using. You could also test using client
side JS in addition to
>the server side code. I don't know of any behavior for
this. But if you are
>starting to need this type of functionality then you need
to start learning the
>basics of programming concepts.
you are right, but I'm a graphic designer that is 'trying' to
do some
programming ;).
> What scripting language are you using? There
>are plenty of online tutorials and language references
online.
I use php and I'm starting to learn it.
I found a free behaviour that do all this on the kaosweaver
web site
http://www.kaosweaver.com/extensions/details.php?id=19).
Ciao ;).
tony

Similar Messages

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • t:inputCalendar How To Specify a Date Range?

    <-- Sorry for my english. -->
    Can anybody help me?
    I want to know how to specify a date range in the <t:inputCalendar/> component. I'm using Tomahawk/Apche implementation. So that the user cannot specify a date outside that range.
    Thanks.

    I don't think that the inputCalendar tag supports that directly. However, you could add a validator to the component.

  • How to create a date range in Web Application Designer

    I am using 3.1 version of Web App Designer.  I need to create a report with date ranges.  I can get one date to work but not two (I need a start date and end Date).  My Query has 0CALMONTH with a variable for Interval.  When I select it as a dropdown (??) in Web App Designer, I only get one date prompt in web app designer.
    Any suggestions??
    Thanks
    Kristen

    Hi Kristen,
    I'm sorry i'm not coming to solve your problem,but for the trouble I have had,and I want to create a date picker in Web Application Designer,so if you have solved the problem ,please email to me? [email protected] ,thx very much!
    best regards
    zegion chan

  • How to get a date range in JDBC sql

    I am using the following in my sql to get a date range... but what if the field is a timestamp will that still work or not...
    AND a.date>=? AND a.date<=?

    Suzie,
    No offence, but is there something stopping you from testing it yourself?
    Good Luck,
    Avi.

  • How to get this date range

    Respecetd guru's,
    i have task to represent this date range start date to end date in every month.
    it show like this..
    01-sep-2009 to 30-sep-2009
    so on...
    plez help me.

    may be you are looking for this
    SQL> SELECT        TO_CHAR (TRUNC (ADD_MONTHS (SYSDATE, LEVEL), 'mm'),
      2                         'dd-mon-yyyy'
      3                        )
      4             || ' to '
      5             || TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, LEVEL)), 'dd-mon-yyyy')
      6                                                                             dt
      7        FROM DUAL
      8  CONNECT BY LEVEL <= 4;   -- change the range here instead of 4 to get a long range
    DT
    01-oct-2009 to 31-oct-2009
    01-nov-2009 to 30-nov-2009
    01-dec-2009 to 31-dec-2009
    01-jan-2010 to 31-jan-2010to get starting from 01-sep-2009
    use like this
    SQL> SELECT        TO_CHAR (TRUNC (ADD_MONTHS (SYSDATE, LEVEL-1), 'mm'),
      2                         'dd-mon-yyyy'
      3                        )
      4             || ' to '
      5             || TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, LEVEL-1)), 'dd-mon-yyyy')
      6                                                                             dt
      7        FROM DUAL
      8  CONNECT BY LEVEL <= 4;
    DT
    01-sep-2009 to 30-sep-2009
    01-oct-2009 to 31-oct-2009
    01-nov-2009 to 30-nov-2009
    01-dec-2009 to 31-dec-2009Edited by: Qwerty on Sep 8, 2009 8:51 PM

  • How to get the date range for a given fiscal period.

    Hi All,
    There is two fields (select options) on my selection screen
    1. Fiscal Year
    2. Fiscal Period.
    I just want the date range between the given year and period on selection screen.
    Thanks,
    Gaurav Mittal

    Check FM's FIRST_DAY_IN_PERIOD_GET and LAST_DAY_IN_PERIOD_GET.

  • How to merge two date ranges

    Hi,
    I have following table. I want to merge date ranges if the dates are continuous and the value is same.I am using Oracle 10g.Please help.
    START_DATE END_DATE VALUE
    1/1/2008 12/31/2008 1234
    1/1/2009 12/31/2009 1234
    Sql statement output should be as follows:
    START_DATE END_DATE VALUE
    1/1/2008 12/31/2009 1234
    Thanks in advance.
    Edited by: user3898545 on Jan 27, 2010 7:44 PM

    Hi,
    user3898545 wrote:
    create table test_group(emp_id varchar2(5),
    start_date date,
    end_date date,
    value varchar2(10));
    insert into test_group(emp_id,start_date,end_date,VALUE) values ('E1','1-JAN-2008','31-DEC-2008','G1');start_date and end_date are DATEs; don't try to put VARCHAR2 values (such as '1-JAN-2008') into DATE columns. Use TO_DATE or DATE literals instead. The INSERT statements you posted may work on your system, but they won't necessarily work anywhere else. In particular, they don't work on my system. Post some sample data that anyone can use.
    ... I used following query to get the output 1/1/2009 - 12/31/2009 G2 when I ran for any date in 2010 or greater.There can be break in date ranges. Although query is giving the correct output which I am looking for I am looking for better performence.
    SELECT MAX (START_DATE)     AS START_DATE,MAX (END_DATE) AS END_DATE ,
    MAX(VALUE) KEEP (DENSE_RANK FIRST ORDER BY START_DATE DESC) GROUP_NUMBER
    FROM
    (WITH     GOT_GRP     AS
    (SELECT     TB_TEST_DATA.*,
         END_DATE - SUM (END_DATE + 1 - START_DATE) OVER ( PARTITION BY VALUE
                                            ORDER BY START_DATE) AS GRP
    FROM
    (SELECT HD.START_DATE,NVL(HD.END_DATE,'31-DEC-9999') "END_DATE",HD.VALUE
    FROM test_group HD
    WHERE HD.EMP_ID = 'E1'
    AND HD.START_DATE < NVL (HD.END_DATE, '31-DEC-9999')
    AND HD.END_DATE < :VDT_AS_OF_DATE
    ORDER BY EMP_ID,START_DATE) TB_TEST_DATA
    SELECT MIN (START_DATE)     AS START_DATE,MAX (END_DATE) AS END_DATE,VALUE
    FROM GOT_GRP
    GROUP BY VALUE,GRP
    ORDER BY START_DATE) CO_GRP;If you have new requirements, maybe you should start a new thread.
    What are your new requirements?
    When you say "There can be break in date ranges", do you mean grp plays no role in this new problem? In that case, you can save time and effort by not computing it.
    The following should produce the results you want from the sampe data given:
    WITH     got_r_num     AS
         SELECT     start_date, end_date, value
         ,     ROW_NUMBER () OVER ( ORDER BY start_date  DESC
                            ,           value       DESC
                           )     AS r_num
         FROM     test_group
         WHERE     end_date < TO_DATE ( :vdt_as_of_date
                           , 'DD-MON-YYYY'
    SELECT     start_date, end_date, value
    FROM     got_r_num
    WHERE     r_num     = 1
    ;

  • How to display multiple data range by using variable?

    Hi experts,
         How do I set a variable at EPM add-in for Excel for dynamic display two year's data? just like as below:
    ***User will execute this report from BPC web(work list).
    user input => 2006
    Report display 2006 and 2007 data
    user input => 2008
    Report display 2008 and 2009 data
    I know if we use BPC 7.5 we can config this by Excel formula, How do I set this function on EPM add-in 10.0?
    best regards,
    Evans.

    I think you can effectively do that using EPMOlapmember function...Just follow :-
    2013.TOTAL <----  EPMContextMember(,"TIME","LEVEL = YEAR")
    2012.TOTAL <----  EPMMemberOffset(,C2,-1)
    2013.DEC    <----  LEFT($C$2,4)&".DEC"
    Similarly 2012.DEC  <----  LEFT($D$3,4)&".DEC"
    Projection & Actual are hard coded in Cell F2 and F3 respectively...
    Then you keep the "ACTIVE MEMBER RECOGNITION" as ON...
    Use the OLAP Member function ..as shown in the screen shot for all the 12 months..

  • How to include a date range in Search Help

    Hi All,
    I need to include a range for a date field in a Search help.
    That is I have to add From Field and To Field for the same field in the search help.
    Please advise.
    Regards.

    If you are going to add an entirely new field (not existing in the SAP standard search), try using EEWB and for the query on that field would be a modification to the Model access class.
    Regards,
    Shailaja

  • How to verify employee data

    Hi Gurus,
    Please i need assistance, my client wants when entring employee data in personnal data,  his boss should check his entries and veryfy that it is ok during hiring, this is to check if he has made some mistakes in his entries,
    How can I set his employee data to get to his boss for verification and approval after enries has been made?
    Tanx.
    Maureen.

    Hi,
    Simply you have to maintain Personnel Administrators as bosses and after the hiring action workflow will be trigered to the bosses that new employees have been hired under them. After that Bosses can check the personnel Data in PA 30.
    Regards,
    Kapil

  • How to verify user data through an unhelpful DBA

    I'm a developer. My organization is large and has separation of duties... i.e. I'm not allowed to touch the production system. The DBA exhibits some sort of anti-social traits and is unhelpful to the point of being harmful. If we request him to run an sql statement and it fails, he offers no insights as to why. Instead, we are left to try and request query after query to try and resolve the issue--which can take days when he could speak up and resolve the issue in seconds.
    But my organizations DBA problem isn't yours... instead, here's my current dilema.
    Our projects are supposed to get 3 generic accounts that we the developers then alter to suit the application. Those users are named:
    <projectname>USR
    <projectname>ADM
    <projectname>DBA
    (I'll use the project name "TEST" in this post)
    We requested the rows from DBA_SYS_PRIVS to see that these generic accounts existed and received the following:
    GRANTEE                        PRIVILEGE                                ADM
    TESTADM                        CREATE SESSION                           NO
    TESTDBA                        CREATE SESSION                           NO
    TESTUSR                        CREATE SESSION                           NOWe requested an alter user on TESTDBA and it worked fine.
    We then requested an alter user on TESTUSR and it returned:
    ALTER USER "TESTUSR"
    ERROR at line 1:
    ORA-01918: user 'TESTUSR' does not existThe only explanation I can think of is that TESTUSR was mistakenly created as a role instead of a user. I'm planning on requesting the contents of the DBA_USERS table and the DBA_ROLES table and see where TESTUSR is located. But what I'm asking here in this forum is if there is a better set of sql statements I could request to be more definitive in researching what happened.
    Thank in advance,
    Darren

    In the actual dump that you got from DBA_SYS_PRIVS, were the GRANTEE names all upper case? Or were some characters lower case as well?
    Oracle is normally case insensitive. But if you double-quote identifiers, those identifiers become case sensitive. The failing DDL
    ALTER USER "TESTUSR"is using double-quotes so TESTUSR would need to be a case-sensitive match to the user name. Is there any chance that is not the case in your environement?
    Barring that, getting a listing from DBA_USERS and DBA_ROLES is probably the way to go.
    Justin

  • How to achieve the from and to date range in report builder 3.

    I AM TRYING TO CREATE ONE REPORT FROM REPORT BUILDER 3.
    WHERE I AM UNABLE TO DEFINE THE DATE RANGE.
    HOW TO ACHIEVE THE DATE RANGE IN REPORT BUILDER.
    NEED FROM DATE AND TO DATE FILTER IN REPORT BUILDER FOR PK DATE.

    Hi Ganesh,
    According to your description, you create a report in Report Builder 3.0, and create two parameters FromDate and EndDate, now you want to use the parameters in your MDX query, right?
    If in this case, here is a sample query for your reference.
    select
    {[Measures].[Internet Sales Amount]
    } on columns,
    {[Date].[Date].members} on rows
    from(
    select
    STRTOMEMBER("[Date].[Date].&["+@StartDate+"]"):STRTOMEMBER("[Date].[Date].&["+@EndDate+"]")
    ) on columns
    from [Adventure Works]
    Reference:STRTOMEMBER
    Regards,
    Charlie Liao
    TechNet Community Support

  • Continious data range algorithm

    I have in my database table 2 important date columns: StartDate (Not null) and EndDate(Allowed Null).
    I want to ensure that all records in the table would always create perfect contiues date ranges with no holes inside.
    Wor example there may not be records [1-may..1-may, 3-may-...] because there would be a hole [2-may...2-may]. Holes are not allowed.
    And overlapping is not allowed, for example [1-may..1-may, 1-may-2may, 3-may-...] is not allowed because overlapping occures on day 1-may. Overlapping and holes are not allowed. But it is allowed that table has no records at all. But all DML manipulations with existing records must ensure that overlapping and holes won't occur.
    How to write such check? How to ensure that data ranges would stay continous with no holes and no overlaps?
    Oracle 11g.

    You're setting the wrong value for the start of a group when there is no (null) lagging end date. In my example I set the value to 0 when it was null as I was expecting each group to start at 1. In your case you've set the date to 1/1/1900 which isn't necessarily the day before the first start date of the group. Instead just default it to the start date - 1 to force a match...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 1 as id, to_date('01.04.2013', 'DD.MM.YYYY') as val1, to_date('04.04.2013', 'DD.MM.YYYY') as val2 from dual union all
      2             select 1, to_date('05.04.2013', 'DD.MM.YYYY'), to_date('06.04.2013', 'DD.MM.YYYY') from dual union all
      3             select 1, to_date('07.04.2013', 'DD.MM.YYYY'), null from dual union all
      4             select 2, to_date('01.04.2013', 'DD.MM.YYYY'), to_date('03.04.2013', 'DD.MM.YYYY') from dual union all
      5             select 2, to_date('04.04.2013', 'DD.MM.YYYY'), to_date('07.04.2013', 'DD.MM.YYYY') from dual union all
      6             select 2, to_date('09.04.2013', 'DD.MM.YYYY'), to_date('12.04.2013', 'DD.MM.YYYY') from dual union all
      7             select 2, to_date('13.04.2013', 'DD.MM.YYYY'), null from dual union all
      8             select 3, to_date('01.04.2013', 'DD.MM.YYYY'),to_date('03.04.2013', 'DD.MM.YYYY') from dual union all
      9             select 3, to_date('04.04.2013', 'DD.MM.YYYY'), null from dual union all
    10             select 4, to_date('01.04.2013', 'DD.MM.YYYY'), to_date('01.04.2013', 'DD.MM.YYYY') from dual union all
    11             select 4, to_date('01.04.2013', 'DD.MM.YYYY'), null from dual
    12            )
    13  --
    14  select id
    15        ,val1 as "start"
    16        ,val2 as "end"
    17        ,lag(val2) over (partition by id order by val1)
    18        ,case when
    19             nvl(lag(val2) over (partition by id order by val1),val1-1) != val1-1 then
    20                   'hole or overlap'
    21              else null
    22         end as chk
    23  from t
    24* order by 1, 2
    25  /
            ID start                end                  LAG(VAL2)OVER(PARTIT CHK
             1 01-APR-2013 00:00:00 04-APR-2013 00:00:00
             1 05-APR-2013 00:00:00 06-APR-2013 00:00:00 04-APR-2013 00:00:00
             1 07-APR-2013 00:00:00                      06-APR-2013 00:00:00
             2 01-APR-2013 00:00:00 03-APR-2013 00:00:00
             2 04-APR-2013 00:00:00 07-APR-2013 00:00:00 03-APR-2013 00:00:00
             2 09-APR-2013 00:00:00 12-APR-2013 00:00:00 07-APR-2013 00:00:00 hole or overlap
             2 13-APR-2013 00:00:00                      12-APR-2013 00:00:00
             3 01-APR-2013 00:00:00 03-APR-2013 00:00:00
             3 04-APR-2013 00:00:00                      03-APR-2013 00:00:00
             4 01-APR-2013 00:00:00 01-APR-2013 00:00:00
             4 01-APR-2013 00:00:00                      01-APR-2013 00:00:00 hole or overlap
    11 rows selected.

  • Can you filter a date range in Numbers 3.1?

    It seems crazy... but I can't figure out how to filter a date range in the new Numbers (3.1).  In other words, I have a column with individual dates e.g. 31-Dec-2012, 29-Feb-2013, 19-April-2004, etc.
    I want to filter it so that ONLY the dates from 2012 show up.
    The thing is that the new filters ONLY seem to let you filter from today's date e.g. between 494 and 692 days from today.  Obviously, that isn't what I want, and it seems very wierd that something so basic would be left out.
    What am I missing?

    In the example below Column A has date values and Column B has a simple filter that displays dates if in year 2012.  Pretty simple, likely too simple.  Not sure what/how you want to display but thought I'd get something started.  The formula in Column B is: IF(YEAR(A2)=2012,A2,"").  You can hide column A if desired.

Maybe you are looking for

  • Compilation problem in Oracle Application Server (9.0.x)

    Hi All, I have a JSP Page, with more than 200 controls, arranged in a tabs. When I try to run this file under Tomcat or JBoss, it runs fine. But when I run it in Oracle 9iAS (9.0.x), it fails to run. The difference is in the way the servlet is genera

  • When The MBP is plugged in (power adapter) what happens with the battrey

    I have the newest Macbook pro, the one you cant take the battrey out from.. I just want to be sure, when my macbook pro is using the adapter, the battrey life time is being saved, is that correct? I ust to plug in my iPod and another hardrive for tim

  • Update OAS 4.0.8.2

    I am trying to use OAS server to run online applications for students. They can upload their all executable servlets file and run their application. Here i am facing problem? when they upload with some modification of the same file. The new file obje

  • I pad not starting and showing linings..

    My i pad is not starting and showing linings of different colours when sleep/ wake button is pressed, then screen goes off . Again pressing sleep button is showing linings again. Holding home button with sleep button is also not solving the problem.

  • I cannot update iTunes from V10.3 to v10.5.

    I can download v10.5, but when I run the install package, it stops near the end of the process and a warning box pops up saying: There is a problem with this Windows Installer package.  A program run as part of the setup did not finish as expected. C