I believe that what you are looking for is the following: http://www.php.net/strtotime
Jordan
Anthony wrote:
I have a form where the user enters a date into a text input field. I need to convert this text to a date and put it in a field in a mySQL database. Is there an easy way to do this? Do I have to tear the string appart and create a date out of the parts? Someone must have a fiunction that will do this work already right?
Thanks for your help - Anthony
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php