Display curren date and time - Php

date and time

Snippet Code


  
Rate this page :
  [ 0 votes]

This code shows the display current date and time using PHP.

<?php $time_now=mktime(date('h') 5,date('i') 30,date('s')); $dattime=date('Y-M-d h:i:s',$time_now); echo $dattime ?>

Tags


Ask Questions

Ask Question