Jump to content

php date


Recommended Posts

 

Hi,

 

I'm newbie but I used some code that may work for you and is a little easier to understand

 


<?php

// 365 days a year /2 = 182.5 days half year (6mths)
// 182.5 days * 24 hours = 4380
$hourdiff = "4380"; // hours diff btwn server 6mths
$futdate = date("l, d F Y h:i a",time() + ($hourdiff * 3600));
print ("$futdate");


?>

Link to comment
https://forums.phpfreaks.com/topic/105736-php-date/#findComment-541767
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.