Php Programming Code Examples Php > Code Snippets Code Examples Some date and time examples Some date and time examples <?php $theDate = time(); print date('d-m-y',$theDate); print ("<br>"); print date('d-m-Y',$theDate); print ("<br>"); print date('D-M-Y',$theDate); print ("<br>"); print date('G-i-s',$theDate); ?>