Using localtime() : localtime « Date « PHP






Using localtime()

 
<?php
$a = localtime();
$a[4] += 1;
$a[5] += 1900;
print "$a[4]/$a[3]/$a[5]";
  
  








Related examples in the same category

1.Changing time zone with an environment variable
2.Finding time parts
3.Simple time zone calculation
4.Return array from localtime( )