mktime
Posted: Sun Jul 30, 2006 11:01 am
Hey,
I have two columns in my database. one column is todays date:
And then one to go one month ahead:
But it's not what i want,
For example when i ran it:
from date('Y,m,d,H,i,s) :
2006,07,30,17,56,41
thats like i want it. But with
mktime(0,0,0,date("m")+1, date("d"), date("Y"));
i get: 1156888800
I want that to be: 2006, 08, 30, 17,56,41
So it just gives the result one month ahead.
Thanks.
I have two columns in my database. one column is todays date:
Code: Select all
date('Y,m,d,H,i,s');Code: Select all
mktime(0,0,0,date("m")+1, date("d"), date("Y"));For example when i ran it:
from date('Y,m,d,H,i,s) :
2006,07,30,17,56,41
thats like i want it. But with
mktime(0,0,0,date("m")+1, date("d"), date("Y"));
i get: 1156888800
I want that to be: 2006, 08, 30, 17,56,41
So it just gives the result one month ahead.
Thanks.