Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display date 1

Status
Not open for further replies.

fiber0pti

ISP
Nov 22, 2000
96
US
I'm new PHP. I've been looking everywhere and I can't find anythign on how to display the current date (like: May 4). How would I do this?
 
Utilize

$date = date("d-m-Y");
$time = date("H:i:s");
echo "Date: $date - Time: $time";

more information search in PHP manual
for Date and Time functions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top