Time stamp and adding 1 year and last day in month
- by kenan
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