I created a forum for entering birthday using php. So i get day n month as
1,2,3,4,.... and not with the leading 'ZERO'
Am storing the DATE as YYYY-MM-DD
<?php $isodate = sprintf("%04d-%02d-%02d", $year, $month, $day); ?>
<?php
$isodate = sprintf("%04d-%02d-%02d", $year, $month, $day);
?>
tht worked...
Have you considered using the date variables Y,m and d?
example:
echo date('Y-m-d');
Output:
2008-10-08