I have a requirement to display a date by adding 3 years to a date entered by user. For example, if user enters 28th Feb 2015, then 28th Feb 2018 should get populated. Issue with addDate function is that it doesn't seem to work when it comes to adding days to a leap year. If we add 3 years to 29th Feb 2016 then the added date is displayed as 01st March 2019 but its supposed to be 28th Feb 2019. Can anybody suggest a solution to this? is there any other function to serve this purpose?
Thanks in Advance!
***Edited by Moderator Marissa to update platform capability tags****
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write Post button here. Once created, please reply back here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.