This date is today, but how to change display date yesterday. <? print(Date("1 F d, Y")); ?> Thanks in advance, george
Subtract 86400 seconds (24 hours) from the date and then output: echo date("1 F d, Y", time() - 86400); Code (markup):
Thanks very much, is work. What I wrong here, can someone help me? <? echo "<tr bgcolor='#00FF7F'>"; echo "<td>" date('F d',' Y' ',' time() '- 86400') "</td>"; echo "</tr>"; ?> Thanks in advance. Regards, george
When starting a new variable in echo after text, you must use "." <? echo "<tr bgcolor='#00FF7F'>"; echo "<td>" . date('1 F d, Y', time() - 86400) . "</td>"; echo "</tr>"; ?> PHP: