Jump to content

Getting correct date


c_shelswell

Recommended Posts

If you would like to change the date of the server do this:

[code]<?php
$day = date("j") + 2; // day 1 - 31 and add 2
$month = date("n") + 5; // month 1 through 12 and add 5
$year = date("Y") - 3; // year yyyy and subtract 3

echo $month.'/'.$day.'/'.$year;
?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/27899-getting-correct-date/#findComment-127568
Share on other sites

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.