Hi, I have a process where I need to get data through http request. Every loop I have to add one day to date, but I don’t know how to do this. Please can someone help with this.
I have a variable “dateTo” with type of System.DateTime and the format needs to be yyyy-MM-dd
When I do a http request I’place this to the request(no problem for placing the value).
But the issues which I need help are:
- Add one day to dateTo variable in for each loop. for example the date is 1900-01-01 and in the next round it should be 1900-01-02. Also does the month change automatically if the date is 1900-01-31 and at the next round the month should be also changed?
- How to format the datetime format from 01/01/1900 to 1900-01-01?
Thank you very much allready in advance