Home > Forum > Actions > How to set back date used in form for one month

How to set back date used in form for one month
0

Hello,

I have some date set on forms. Need to find any solution to have that date - 1 month
for example:
Date on form is (YYYY-MM-DD):
1. 2022-05-05
2. 2022-01-10
3. 2021-12-25

Date that I expect need(YYYY-MM-DD):
1. 2022-04-05
2. 2021-12-10
3. 2021-11-25

Do you have any idea to solve it?

My poor trying on the screen below (a lot of counting and IF's and still get wrong format of the MM).

Thanks in advance for any suggestions and ideas.

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.