<?php
echo 'Original Date/Time <br />';
//mktime(hour,minute,second,month,day,year)
echo date("h:i:s d-m-Y", mktime(10, 15, 20, 8, 20, 2008));
//10:15:20 20-08-2008
echo '<br /><br />';
echo 'Date/Time Added by 1';
echo '<br />';
echo date("h:i:s d-m-Y", mktime(10+1, 15+1, 20+1, 8+1, 20+1,2008+1));
//11:16:21 21-09-2009
?>
Get Free Sinhala IT Learning Videos Kuppiya.com
No comments:
Post a Comment