Re: [PHP-DEV] month part

2002-12-20 Thread Diana Castillo
Hi everyone, I really wanted to validate if they put in a date , I ended up doing it like this: list($month, $day, $year) = sscanf($lastcontact,"%d/%d/%d"); if (checkdate($month,$day,$year)){it is a date} "Antony Dovgal" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PRO

Re: [PHP-DEV] month part

2002-12-19 Thread Andrey Hristov
Please ask on [EMAIL PROTECTED] and take a look at sscanf() function Andrey - Original Message - From: "Diana Castillo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 4:04 PM Subject: [PHP-DEV] month part > How can I get a st

Re: [PHP-DEV] month part

2002-12-19 Thread Antony Dovgal
On Thu, 19 Dec 2002 15:04:56 +0100 "Diana Castillo" <[EMAIL PROTECTED]> wrote: > How can I get a string containing the month part of a date the user types > in? > e.g. if they type in "06/07/200" I want to get "06" Take a look to http://php.net/explode, String Functions and Date/Time Functions. Bu

Re: [PHP-DEV] month part

2002-12-19 Thread Adam Voigt
A. This is a list for the development OF php, not IN php. B.: $split = explode("/","06/07/2000"); $month = $split[0]; On Thu, 2002-12-19 at 09:04, Diana Castillo wrote: How can I get a string containing the month part of a date the user types in? e.g. if they

[PHP-DEV] month part

2002-12-19 Thread Diana Castillo
How can I get a string containing the month part of a date the user types in? e.g. if they type in "06/07/200" I want to get "06" Thanks, Diana -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php