Results 1 to 4 of 4

Thread: [jasoncalendar] alter month list values

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question [jasoncalendar] alter month list values

    Hi,
    I noticed that the month list value begins from 0 :
    0 for Jan, 1 fot Feb ...

    What should I do to have 01 for Jan, 02 for Feb ... 12 for Dec ?
    thanx

  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, and also, post in the correct forum category. See this thread for the proper posting format when asking a DD script question.

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Quote Originally Posted by sami_c View Post
    Hi,
    I noticed that the month list value begins from 0 :
    0 for Jan, 1 fot Feb ...

    What should I do to have 01 for Jan, 02 for Feb ... 12 for Dec ?
    thanx
    Please provide a link as DD suggested so that it would be easy for the users to troubleshoot your problem.

    Are you refering to this script?

    If yes do you want a date in the following format

    Code:
    07-03-2007
    Month is the blue one.

    You can achieve that using the following code (it is an example code used in the Jasons date input calender, the only important thing is the third parameter)

    Code:
    DateInput('orderdate', true, 'DD-MM-YYYY')

  4. #4
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i'm sorry
    yes i'm refering to this script :
    http://www.dynamicdrive.com/dynamici...oncalendar.htm

    i don't ask for how to change date format in the hidden field, but the months <select> tag begins from 0 !!
    I use Web developper extension for firefox to have the generated source :
    Code:
    <select class="calendarDateInput" id="birth_date_Month_ID" onchange="birth_date_Object.changeMonth(this)">
    <option value="0">Jan</option>
    <option value="1">Feb</option>
    <option value="2" selected="selected">Mar</option>
    <option value="3">Apr</option>
    <option value="4">May</option>
    <option value="5">Jun</option>
    <option value="6">Jul</option>
    <option value="7">Aug</option>
    <option value="8">Sep</option>
    <option value="9">Oct</option>
    <option value="10">Nov</option>
    <option value="11">Dec</option>
    </select>
    i'm asking how can we have this :
    Code:
    <option value="1">Jan</option>
    <option value="2">Feb</option>
    ...
    or
    Code:
    <option value="01">Jan</option>
    <option value="02">Feb</option>
    ...

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
  •