Results 1 to 3 of 3

Thread: DateInput

  1. #1
    Join Date
    Jul 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DateInput

    Hi
    I used the following code to validate the DateInput function in my application by seeing the same in this site. But when I run the application it is not accepting even the current date. Can anyone provide me a help.

    <script>DateInput('fromdate',true, 'DD-MM-YYYY')</script>
    <script type="text/javascript">
    function validateTheDate()
    {
    var DateOK = false;
    var Today = new Date();
    if (fromdate_Object.picked.date < Today) alert('Cannot select a date in the past.');
    else if (fromdate_Object.picked.yearValue > 2020) alert('Cannot select a year in the future.');
    else DateOK = true;
    return DateOK;
    }
    </script>

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

  3. #3
    Join Date
    Jul 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi
    I used the following code to validate the DateInput function in my application by seeing the same in this site. But when I run the application it is not accepting even the current date. Can anyone provide me a help.

    The thread that I made use is :


    http://www.dynamicdrive.com/forums/s...ead.php?t=9821

    Thanks in advance.

    Regards
    Mahathi.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •