I have a db table with a date field startBefore
in ('Y-m-d')
format. There are also 3 other int fields representing years, months and days. What I would like to do is to fill these three fields the new startAfter
date in 'Y-m-d'
format.
For example I have the '2001-11-14' as startBefore
date and I would like to subtract 3 yrs, 7 months, 1 day to get the startAfter
date.
Any ideas how I can accomplish this?
Thanks!