Jul 26, 2008

Show The Current Date/time With Php

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials

free web hosting

Show The Current Date/time With Php

Unholy Prayer
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
Thank u master
Very good

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:


Searching Video's for show, current, date, time, php
advertisement



Show The Current Date/time With Php



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE