0

One Hour Earlier Then Given Datetime in PHP

strtotime will give you the unix timestamp of your date. From this timestamp, you then subtract your hour: [code lanaguage=”php”] $date = date(‘H:i:s’, strtotime($date) – 3600); // 3600 = 60 * 60 [/code]