DjMikeWatt Posted August 1, 2009 Share Posted August 1, 2009 So, if date(F) displays "August", how would I get it to display "September"? I've looked up date function and mktime function and I'm not quite following. Quote Link to comment https://forums.phpfreaks.com/topic/168346-how-to-display-next-month/ Share on other sites More sharing options...
.josh Posted August 1, 2009 Share Posted August 1, 2009 Was there any particular part of those functions you don't understand? there are specific coding examples for showing future dates in them. For instance, look at example 3 in date Quote Link to comment https://forums.phpfreaks.com/topic/168346-how-to-display-next-month/#findComment-888041 Share on other sites More sharing options...
DjMikeWatt Posted August 1, 2009 Author Share Posted August 1, 2009 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)? Quote Link to comment https://forums.phpfreaks.com/topic/168346-how-to-display-next-month/#findComment-888047 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.