I have a date picker field - based on the date selected, I need to show another date field on the same form which is basically - Add one year minus a day.
AddDays does not cater for leap years.
See attached screenshot of the code, works fine except if date chosen is 03/31/2015, the value calculated is 02/28/2016 - Should be 02/29/2016 as ...