RE: [PHP] Check if var has a date (timestamp or regular)

2007-08-08 Thread Bastien Koert
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

RE: [PHP] Check if var has a date (timestamp or regular)

2007-08-08 Thread Sanjeev N
[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

Re: [PHP] Check if var has a date (timestamp or regular)

2007-08-07 Thread Richard Lynch
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

Re: [PHP] Check if var has a date (timestamp or regular)

2007-08-06 Thread brian
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

[PHP] Check if var has a date (timestamp or regular)

2007-08-06 Thread OOzy Pal
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