Jump to content

Date - Adding months


jawbreaker

Recommended Posts

[!--quoteo(post=366577:date=Apr 19 2006, 02:45 PM:name=jawbreaker)--][div class=\'quotetop\']QUOTE(jawbreaker @ Apr 19 2006, 02:45 PM) [snapback]366577[/snapback][/div][div class=\'quotemain\'][!--quotec--]
How would I use the mktime() function using two variables?

$Date = 2006-01-01
$MonthsToAdd = 6
[/quote]
instead of using php mktime. you can use ADD_MONTH function of mysql . i dont remember the proper function name but i have done it before.

Link to comment
https://forums.phpfreaks.com/topic/7876-date-adding-months/#findComment-28731
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.