php code
<td><?php print strftime('%c'); ?></td>
This code is giving me the current date with the time .. But i want only the current date of the system... What ll be the code for it ??? Thanks in advance..
use this:
<td><?php print strftime('%D'); ?></td>
//output will be 02/05/13 for February 5, 2013
OR you can use:
<td><?php print strftime('%F'); ?></td>
//output will be 2013-02-05 for February 5, 2013
For more read tutorial here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With