Results 1 to 5 of 5

Thread: Jason's Calendar: how to set current day + 1 ?

  1. #1
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Jason's Calendar: how to set current day + 1 ?

    DD Jason's Date Input Calendar
    http://www.dynamicdrive.com/dynamici...oncalendar.htm

    Hello,

    I'm currently using the above script with the following parameter:

    DateInput('dlo', true, 'YYYYMMDD')

    And I would like to display by default, in the related input fields, the day following the current one...

    Please can you direct me how to achieve this behaviour ?

    Thanks in advance for your appreciated help and best regards,
    Germain
    Last edited by Beverleyh; 10-01-2013 at 11:14 AM. Reason: domain removed

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Please do not post in multiple forums. I have deleted your other thread and also removed the promotional website link from the bottom of your post as this is against policy for new members.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. The Following User Says Thank You to Beverleyh For This Useful Post:

    ADtlas (10-02-2013)

  4. #3
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I'm so sorry Beverleyh for my two postings but I've realized afterwards that I was in the wrong forum and then I was unable to remove the wrong posting... Thank you for both your actions !

    QUOTE=Beverleyh;300188]Please do not post in multiple forums. I have deleted your other thread and also removed the promotional website link from the bottom of your post as this is against policy for new members.[/QUOTE][/QUOTE]

  5. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    <script type="text/javascript">
    var morgen = new Date();
    morgen.setDate(morgen.getDate() + 1);
    function padnum(n){
    	return n < 10? '0' + n : n;
    }
    morgen = [morgen.getFullYear(), padnum(morgen.getMonth() + 1), padnum(morgen.getDate())].join('');
    DateInput('dlo', true, 'YYYYMMDD', morgen);
    </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ADtlas (10-02-2013)

  7. #5
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hello John,

    It is so simple... after having seen your code which works beautifuly :-)

    Many thanks for your fast and very appreciated answer !

    Cheers,
    Germain

Similar Threads

  1. Jason's Date Input Calendar - Calendar reappearing in IE8
    By NGJ in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-30-2011, 01:30 PM
  2. Jason's Calendar , PHP , MSQL Help please?
    By nmb in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-06-2007, 11:29 AM
  3. Jason's calendar - check one day is after another
    By kiwibrit in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 07-01-2007, 04:07 PM
  4. Please Help- Jason's calendar!
    By whiteknight in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 01-04-2007, 08:57 PM
  5. Replies: 1
    Last Post: 11-04-2005, 05:08 PM

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
  •