For example: this is March 2015. I can get the next month of the current year using month()+1
concatenating with year()
, ie the month of April 2015. But let's say we were in December 2015 , how do I automatically get the month of January and the year 2016 ? Is there any function that does this without me having to make comparison of the month?