Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Input date - "Parsing error - unsupported date format"
kellyos
Junior Member

Posts: 2
Registered: 9/15/2003
Member Is Offline
posted on 9/15/2003 at 07:42 PM Reply With Quote
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>&nbsp;</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?
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/16/2003 at 09:34 AM Reply With Quote

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>
View User's Profile View All Posts By User U2U Member
kellyos
Junior Member

Posts: 2
Registered: 9/15/2003
Member Is Offline
posted on 9/16/2003 at 02:30 PM Reply With Quote

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>
View User's Profile View All Posts By User U2U Member
nik


Posts:
Registered: 1/1/1970
Member Is Offline
posted on 9/24/2003 at 02:50 PM Reply With Quote

We've answered you via email.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004