Re: Date / Time question

From: Date: Fri, 25 Aug 2000 20:28:24 +0000
Subject: Re: Date / Time question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13722@lists.php.net to get a copy of this message
"Paulson, Joseph V. \"Jay\"" wrote: > > Hello everyone-- > I'm trying to validate a date to make sure that it isn't any date before the > current date (i.e. today's date is 08-25-2000 and I don't want any dates > before that date). Right now I have one function that checks to make sure > that the actual date is a valid date, however it doesn't check if the date > is before today's date. > > The application I am making is setting appointments and it's kind of dumb to > set an appointment for yesterday. I'm not too sure how exactly to go and > perform this check on the date so any help would be great! mktime() is your friend -- e.g., if if (mktime( ARGS ) < time()) error: it's too early To get your ARGS use ereg/preg/split on the sumbmitted date. Ciao, Andreas

« previous php.general (#13722) next »