Jump to content

Archived

This topic is now archived and is closed to further replies.

chris9902

valid date

Recommended Posts

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.

Share this post


Link to post
Share on other sites
How about checkdate http://pt.php.net/manual/en/function.checkdate.php ?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.