How to get Date :
<?php
#How to get Date :
echo date("y/m/D");
echo "<br/>";
echo date("y-m-d");
echo "<br/>";
//Note : d date on digit D = Day
//Note : m month on digit M = Name of Month
//Note : y two digit Year Y = 4 Digit Year
// For Getting TimeZone Default of Server :: Default = Europe/Berline
date_default_timezone_set("Asia/Kolkata");
echo "<br/>";
echo date_default_timezone_get(); // For Getting TimeZone Default of Server
echo date("H:i:s"); //24 Hours
echo "<br/>";
echo date("h:i:s:a"); //for showing Anit-meridian and Post Meridian
//H : 24 Hours Time
//i : interval
//s : seconds
0 Comments