Unholy Prayer
Apr 26 2007, 08:26 PM
| | CODE <?php
$date = date([b]F j, o[/b]); //Displays April 25, 2007 (Assuming that is the current date) $time = date([b]g:i a[/b]); //Displays 4:26 PM (Assuming that is the current time)
echo "Welcome! The date is $date and the time is currently $time.";
?>
You can change the date and time formats by changing the text in bold above. For a complete list of time formats, visit the link below. http://us2.php.net/manual/en/function.date.php |
Reply
badea
May 20 2007, 04:51 PM
Thank u master
Very good
Reply
Recent Queries:--
php "show current date" - 1161.14 hr back. (1)
Similar Topics
Keywords :
date php- Php - Forms, Date And Include
- Working with POST and GET and also the Date() function (0)
- Using The Date() Function [php]
- (2)
The date() function can be used in a good way, in some cases, and the most common place you would
probably see this in use would be on forums. Let's get down to business... If you would like to
display the date, you would have to put the echo tag before the date() function as so... CODE
echo date("g:i:s"); Which would display as the common hours, minutes,
seconds format (ex: 3:32:45). But you can also add wheather it is AM or PM, display the day (Sunday
thru Monday), the year, pretty much anything that has to do with date. Here is a...
Looking for show, current, date, time, php