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:[EMAIL PROTECTED]] Sent: 19 December 2002 14:05 To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php