Jump to content

date + 60 days


adzie

Recommended Posts

Hello :)

 

I'm trying to add 60 days the acars date (this displays the date in the format 2008-07-06)

 

                      $acars=substr($lastaar,0,10);
                      $nyr=substr($lastaar,0,4);
                      $nmth=substr($lastaar,5,2);
                      $nday=substr($lastaar,8,2);
                      $ndate = (($nyr * 365) + ($nmth * 30) + ($nday));

 

When I tried  $raid = $acars+60; All is get is the year from above plus 60 years display.

 

How can I get it to add 60 days?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/119744-date-60-days/
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.