Re: Date / Time question
| From: | Monte Ohrt | Date: | Tue, 29 Aug 2000 14:05:23 +0000 |
| Subject: | Re: Date / Time question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14122@lists.php.net to get a copy of this message | ||
if(strtotime("08-25-2000") < time())
echo "too early";
"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!
>
> Thanks,
> Jay Paulson
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/