taz321 Posted January 16, 2008 Share Posted January 16, 2008 Hi i have the code for the exact date which is <?php $date = date("l F j, Y");echo $date;?> But not sure about for the exact time. I would like it in the 24hrs digital i.e - 16:00 Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted January 16, 2008 Share Posted January 16, 2008 Take a look at the manual. Quote Link to comment Share on other sites More sharing options...
taz321 Posted January 16, 2008 Author Share Posted January 16, 2008 sorry cant seem to find the adequate code for the time. Would anyone else know ? Quote Link to comment Share on other sites More sharing options...
TimUSA Posted January 16, 2008 Share Posted January 16, 2008 look at the manual again date("H:i") is all in the first table you see when you click the link above Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted January 16, 2008 Share Posted January 16, 2008 <?php echo $date = date("H:i"); ?> Quote Link to comment Share on other sites More sharing options...
revraz Posted January 16, 2008 Share Posted January 16, 2008 Kinda hard to miss Time --- --- a Lowercase Ante meridiem and Post meridiem am or pm A Uppercase Ante meridiem and Post meridiem AM or PM B Swatch Internet time 000 through 999 g 12-hour format of an hour without leading zeros 1 through 12 G 24-hour format of an hour without leading zeros 0 through 23 h 12-hour format of an hour with leading zeros 01 through 12 H 24-hour format of an hour with leading zeros 00 through 23 sorry cant seem to find the adequate code for the time. Would anyone else know ? Quote Link to comment Share on other sites More sharing options...
taz321 Posted January 16, 2008 Author Share Posted January 16, 2008 cheers thanks for that, finally found it. 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.