There's a specific concept known as "campaign duration" where you can select a date between the first and last day of the month. If you choose a date outside this range, such as a date from the following month, the Backend API will respond with an "Input param error."
If I select the last date on the date selector (the 30th day of the month), the Backend API will also return an "Input param error." This indicates that it treats the 30th day as if it were the 1st day of the next month. To resolve this issue, I need to adjust my date selection by subtracting one day before sending it through the API, since the date is in string format. How can I reduce the string number by one before sending it via the API? https://i.sstatic.net/qvLj2.png