Jump to content

[SOLVED] Help with date...


hellouthere

Recommended Posts

i have a date in the format yyyy-mm-dd

 

i need to add 1 month to this date...

 

i can split it into an array... then add 1 to the second value in the array (month)

 

but how can i do this without ending up with 13 months in a year etc... if you see what i mean...

 

at the moment the script treats it as a string of, i need it to treat it as a date...

 

thanks in advance...

Link to comment
https://forums.phpfreaks.com/topic/45033-solved-help-with-date/
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.