Jump to content


valid date

  • Please log in to reply
1 reply to this topic

#1 chris9902

  • Members
  • PipPip
  • Member
  • 14 posts
  • LocationUK

Posted 03 October 2006 - 08:35 AM

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 mcal_date_valid() 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.

#2 yonta

  • Members
  • PipPipPip
  • Advanced Member
  • 70 posts

Posted 03 October 2006 - 10:46 AM

How about checkdate http://pt.php.net/ma...n.checkdate.php ?
do it, do it right, do it right now

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users