Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Why we use Date() function in PHP and How?
 We use Data() function in PHP to format the local time and date.
Syntax:
string date( string $format[, int $timestamp ]) 
Where,timestamp is optional.Timestamp is the no of seconds after 1st Jan,1970 at 00:00:00 GMT.
Example:
<?php
echo Date("Year/month/date");
echo "<br />";
echo Date("Year.month.date");
echo "<br />";
echo Date("Year-month-date");
?>
Posted By: Name:Rajesh Kr URL: Why we use Date() function in PHP and How?