The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
php mktime question
Hi there,
Im doing something to display when a monthly newsletter will be released which is always the 1st of the month, so i've setup a plugin that i'm intending to use to put the date into a variable $nextmonth. Problem is i cant seem to get the correct value. This is what i've got at the minute: Code:
$nextmonth = date("d/m/Y", mktime(0, 0, 0, 1, m+1, Y)); Effectively what i'm trying to achieve is that $nextmonth will currently have the value 01/02/2007 and if the date were say february now then it will be 01/03/2007 i.e. day will always be 01 month will be the next month and year will be next year if month is december. I've looked through lots of examples of this but cant really work out how to adapt it to what i need. Anyone got any idea how to do this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|