Jump to content

date("now") prints out wrong date ?


ShaolinF

Recommended Posts

Please read the documentation for what you are doing - http://us2.php.net/manual/en/function.date.php

 

"now" for a format string would give: Numeric representation of the month, without leading zeros (1-12), ISO-8601 year number, and numeric representation of the day of the week (0-6). So, today (Nov. 27, 2009 where I am located) would give 1120095

i am also new to php but i hope this helps if u going to use this on php

$thedate = date('l dS F Y');
  echo '<center><u>' .$thedate. '</center></u>';

 

that should give you something like Friday 27th November 2009

i hope this helps you in some way hehe

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.