date format checker

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
greedyisg00d
Forum Commoner
Posts: 42
Joined: Thu Feb 12, 2009 2:48 am

date format checker

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: date format checker

Post by requinix »

Split it into month, day, and year parts, and pass them to checkdate.
Post Reply