Show date in PHP
PHP date() function :
PHP output :
Current Date: 11/04/17
<?php
$date = date("d/m/y");
echo "Current Date: $date";
?>
PHP output :
Current Date: Tue/04/2017
<?php
$date = date("D/m/y");
echo "Current Date: $date";
?>
PHP output :
Current Date: Tue/Apr/17
<?php
$date = date("D/M/y");
echo "Current Date: $date";
?>
PHP output :
Current Date: Tue/Apr/2017
<?php
$date = date("D/M/Y");
echo "Current Date: $date";
?>
By Table
|
Comments
Post a Comment