Page 1 of 1

date format checker

Posted: Tue Mar 03, 2009 7:01 pm
by greedyisg00d
Hi I am currently making an scheduler and I have a javascript calendar where the selected value is passed into a textbox in this format mm/dd/yyyy. My problem is I want to create a checker for invalid date format because sometimes the users edit or just type the date into the textbox. Any sample codes so that I can try it..THANKS

Re: date format checker

Posted: Tue Mar 03, 2009 7:41 pm
by requinix
Split it into month, day, and year parts, and pass them to checkdate.