Re: Checking a date

From: Date: Mon, 07 Apr 2003 11:36:12 +0000
Subject: Re: Checking a date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142680@lists.php.net to get a copy of this message
On Mon, 7 Apr 2003 11:26:29 +0100, you wrote: >I have a form on my page with a date field, how can i check that the user >has entered a valid date (i.e. a date that exists) and it is in the format >YYYY-MM-DD ? http://www.php.net/manual/en/ref.datetime.php checkdate() returns TRUE or FALSE.

« previous php.general (#142680) next »