Mega Code Archive

 
Categories / Php / Development
 

Get date and time

<html><body> <h1>Hello!</h1> <? $dat=date("d.m y"); $tm=date("h:i:s"); echo "The current date is $dat<br>\n"; echo "The current time is $tm<br>\n"; ?> </body> </html>