- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
simple date question
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-02-2009 11:18 AM
Solved! Go to Solution.
Re: simple date question
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Accept as Solution
- Email to a Friend
- Report Inappropriate Content
04-03-2009 02:53 AM
I would guess that the default date format on your system is MM/dd/yyyy. The date/calendar automatically roll over when too large values are used, so that your input valule (22/04/2008) is interpreted as the tenth month after december, 2008, or 10/04/2009.
You can set your own default date and time format strings on NdCalendar instances. See the properties "defaultDateFormat", "defaultTimeFormat" etc.
Regards,
Jostein
Re: simple date question
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
04-03-2009 08:34 AM
Yes, I understand what you're saying. However I would like to keep the format MM/dd/yyyy and have it not automatically roll over, this way I could validate it and return an error to the user indicating an invalid date. I thought using the calendar().lenient as false would prevent this, But the date was still automatically rolling over.
Is there a way to stop the roll over?
As I've said, I also I've tried setting calendar().lenient to false. Am I missing another step?
Thanks for the help.
Re: simple date question
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Accept as Solution
- Email to a Friend
- Report Inappropriate Content
04-05-2009 02:28 PM
I had the same problem but now its all good. thanks
Re: simple date question
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Accept as Solution
- Email to a Friend
- Report Inappropriate Content
04-05-2009 04:28 PM
Jostein, again thanks for the comment. After taking another look I got it going,
simple over sight as usual.

