mybluehair Posted November 20, 2007 Share Posted November 20, 2007 short and sweet. in my php file i want to show the time. (preferably time and date) how do i write it? i tryed something like this: "$time= NOW();" and that failed horribly. so please help. Quote Link to comment Share on other sites More sharing options...
pranav_kavi Posted November 20, 2007 Share Posted November 20, 2007 echo date('h:i:s A'); Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 20, 2007 Share Posted November 20, 2007 try this $today = date("F j, Y, g:i a"); print $today; more information at http://php.net/date Quote Link to comment Share on other sites More sharing options...
Zeyber Posted November 20, 2007 Share Posted November 20, 2007 Heres a tutorial to answer that: http://www.w3schools.com/php/php_date.asp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.