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 PROTECTED]... > 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. > But you'd better write such questions to [EMAIL PROTECTED] > > --- > Wbr, > Antony Dovgal aka tony2001 mailto:[EMAIL PROTECTED] > http://phpclub.net -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php