chris9902 Posted October 3, 2006 Share Posted October 3, 2006 I have a script and I need to check the input of a date to make sure it's valid. I need it to check if the date exists because it's for bookings and I don't want people trying to book on the 31st of Feb ;)anyway. I found this funtion [url=http://uk.php.net/manual/en/function.mcal-date-valid.php]mcal_date_valid()[/url] and it looks like it does what I need it to do but when I try and call it I just "Fatal error: Call to undefined function". I'm running PHP 4.4.4 on my localhost that I set up about 20 minutes ago and I'm just wondering could it be I don't have the extension installed or is this funtion not valid anymore?also if anyone has a funtion to check a date please please post it :)Thanks all. Link to comment https://forums.phpfreaks.com/topic/22839-valid-date/ Share on other sites More sharing options...
yonta Posted October 3, 2006 Share Posted October 3, 2006 How about checkdate http://pt.php.net/manual/en/function.checkdate.php ? Link to comment https://forums.phpfreaks.com/topic/22839-valid-date/#findComment-102943 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.