kellyos
Junior Member
Posts: 2
Registered: 9/15/2003
Member Is Offline
|
| posted on 9/15/2003 at 07:42 PM |
|
|
Input date - "Parsing error - unsupported date format"
Everything on my calendar is working fine except if I open a record that already has a start date defined.
Rather than display the existing date, the calendar displays a generated date (defaults to the current date).
My understanding was that I could replace "null" with a date in string format. Anything that I replace "null" with causes the
following error:
"Parsing error - unsupported date format"
The sample code is:
<tr>
<th class="label">Start Date:</th>
<td> </td>
<td align="left">
<script language="JavaScript"> // Display calendar to select start
date.
new calendar(null, 'myForm', 'startDt');
</script>
<!--p><input type="Button" onclick="alert(document.forms
['myForm'].elements['startDt'].value);"
value="Show me Date!"></p-->
</td>
</tr>
Is I want to pass in the date in the format YYYY-MM-DD, how do I pass that into the calendar?
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/16/2003 at 09:34 AM |
|
|
To work with date format YYYY-MM-DD you should attach cal_format02.js file:
<head>
<!-- some header data -->
<script language="JavaScript" src="cal_format02.js"></script>
</head>
|
|
|
kellyos
Junior Member
Posts: 2
Registered: 9/15/2003
Member Is Offline
|
| posted on 9/16/2003 at 02:30 PM |
|
|
This is what I have in my header: <script language="JavaScript" src="calendar/calendar.js"></script>
<script language="JavaScript" src="calendar/cal_format02.js"></script>
|
|
|
nik
Posts:
Registered: 1/1/1970
Member Is Offline
|
| posted on 9/24/2003 at 02:50 PM |
|
|
We've answered you via email.
|
|
|