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. Quote 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/22839-valid-date/#findComment-102943 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.