<?
$datum="07-11-76";
$date=explode('-',$datum);
echo date('Y-m-d',mktime(0,0,0,$date[1],$date[0],$date[2]));
?>


Op zondag 18 augustus 2002 09:53, schreef Smita Manohar:
> hii
> i'm using php with my sql. i wanted to take date input in the dd-mm-yy
> format from user. is there any function to convert this accepted input into
> yyyy-mm-dd format to store in database ?
>
> thnx and regards
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to