FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


date() problem





ranzon
Hi i have a problem with date();

when i use this code:
Code:
$time=date("h:m");
$date=date("D-M-Y");

it returns for an example:
Date: Sat-Aug-2006
and Time: 09:08
but i want it too return:
date: 12-08-2006
time: 21:08

how can i fiks that?
Traveller
ranzon wrote:
how can i fiks that?

By using the proper date formatting codes:

Code:
$time=date("H:m");
$date=date("d-m-Y");
ranzon
Traveller wrote:
ranzon wrote:
how can i fiks that?

By using the proper date formatting codes:

Code:
$time=date("H:m");
$date=date("d-m-Y");


ahh thank you it worked..
Traveller
ranzon wrote:
ahh thank you it worked..


Great! In that case, since this is resolved, it is time to -close- the topic.
Related topics
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.