This question already has an answer here:
- Add 2 hours to current time in MySQL? 5 answers
- Add number of days to a date 19 answers
I have mysql date like this 2013-10-16 17:44:13
and I need to get +30 days from there. I can't use eg. 10th ( month ) and change it to 11th ( month ) as this may be 31 day or 29 depending on the month
I can only think of converting 2013-10-16 17:44:13
to timestamp than + 30*24*60*30, and than this new timestamp back to mysql format
Is there a better way?
</div>