04-02-2009 11:18 AM
Solved! Go to Solution.
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.
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.