Time stamp and adding 1 year and last day in month

Posted by kenan on Stack Overflow See other posts from Stack Overflow or by kenan
Published on 2010-03-08T21:10:54Z Indexed on 2010/03/08 21:21 UTC
Read the original article Hit count: 261

Filed under:
|

I have timestamp in DB like: 1268085720, its 2010-03-08 23:00, so its today.

How can i add one year, and to be the last day in the same month, and need to convert it like: YYYY-MM-DD HH:MM?

For given example i need 2011-03-31 23:59.

Thanks

© Stack Overflow or respective owner

Related posts about timestamp

Related posts about php