Re: date part

From: Date: Thu, 19 Dec 2002 18:15:54 +0000
Subject: Re: date part
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128892@lists.php.net to get a copy of this message
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" <holmes072000@charter.net> To: "'Diana Castillo'" <diana.castillo@nvtechnologies.com>; <php-general@lists.php.net> 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

« previous php.general (#128892) next »