Following on to the L T: $ar = explode("/",$thestring); thenL $ar[0] = 06 $ar[1] = 07 $ar[2] = 200
----- Original Message ----- From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Diana Castillo'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 11:56 AM Subject: RE: [PHP] date part > 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" If you know that's the format they're going to use, the you can just use substr() to grab the first two characters. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php