RE: [PHP] date part[Scanned]
| From: | Michael Egan | Date: | Thu, 19 Dec 2002 14:21:59 +0000 |
| Subject: | RE: [PHP] date part[Scanned] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128859@lists.php.net to get a copy of this message | ||
You could use the explode function to break the string down into its different elements with
'/' as the delimiter.
Problem is if you're allowing users to input the date into a text box you can't be sure
how they'll enter the data. The better option is probably to constrain what they can enter
with drop down boxes for year, month and day.
Michael Egan
-----Original Message-----
From: Diana Castillo [mailto:diana.castillo@nvtechnologies.com]
Sent: 19 December 2002 14:05
To: php-general@lists.php.net
Subject: [PHP] date part[Scanned]
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php