Get last day?
Posted: Mon May 31, 2010 8:19 pm
Hey ya guys, I was doing some searching around on the PHP manual and goggle and what not, and I couldn't find the answer.
What I'm trying to do is get the previous date. I saw a bunch of a things on getting the first and last day of the current month and what not, but nothing about previous day.
What I was thinking I could do is take the current day, -1 to it and that would give me the right number and if it =0 then do an if() and -1 to month then get last day of the previous month.
Thoughts?
What I'm trying to do is get the previous date. I saw a bunch of a things on getting the first and last day of the current month and what not, but nothing about previous day.
What I was thinking I could do is take the current day, -1 to it and that would give me the right number and if it =0 then do an if() and -1 to month then get last day of the previous month.
Thoughts?