Re: regarding date
| From: | Bas Jobsen | Date: | Sun, 18 Aug 2002 10:14:42 +0000 |
| Subject: | Re: regarding date | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21213@lists.php.net to get a copy of this message | ||
<?
$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