Jump to content

valid date


chris9902

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.