ed, 8 Aug 2007 16:50:39 +0530> Subject: RE:
[PHP] Check if var has a date (timestamp or regular)> > Hi,> > You need to
check with your submitted data as in which format it is. Try> with different
combination for splitting the string (include -, / while> splitting string). If
[mailto:[EMAIL PROTECTED]
Sent: Monday, August 06, 2007 5:22 PM
To: PHP
Subject: [PHP] Check if var has a date (timestamp or regular)
How can I check an inputed date if it is a valid date and if it is in
the form of a timestamp or regular date such as (22-07-2007 or
22/07/2007)
--
OOzy
Ubuntu
On Mon, August 6, 2007 6:52 am, OOzy Pal wrote:
> How can I check an inputed date if it is a valid date and if it is in
> the form of a timestamp or regular date such as (22-07-2007 or
> 22/07/2007)
Use the cool new "filter" extension to PHP or use PCRE.
http://php.net/filter
http://php.net/pcre
OOzy Pal wrote:
How can I check an inputed date if it is a valid date and if it is in
the form of a timestamp or regular date such as (22-07-2007 or
22/07/2007)
You could first check if the variable consists only of numbers. If so,
it's likely a timestamp. If $var does consist of something ot
How can I check an inputed date if it is a valid date and if it is in
the form of a timestamp or regular date such as (22-07-2007 or
22/07/2007)
--
OOzy
Ubuntu-Feisty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo