Using Localtime()

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

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.