Jump to content

How to display next month


DjMikeWatt

Recommended Posts

Well, I found this code somewhere else - it works, but I'm not really sure what I'm seeing, you know?  I'm not content with it working, I want to know why it's working.

date("F", strtotime("+1 month", time()))

 

As far as example 3 on the php.net site, my questions are:

 

What are the parameters in mktime()?

Do the date(d) and date(Y) sections need to be there in a case where I'm only looking for the month (in date(F) format)?

 

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.