Add and rest one day to date string

I have an date that can be date or datetime, for example: 2021-04-13

2021-04-14T00:00:00.000Z

both are strings, so I need to add or subtract one day to each date, but also If a date have the last day of month and I add one day, I need to change the month, or year if is the last month of the month, and the same for the date where I need to subtract to the first day of the month. I'm working with typescript



from Recent Questions - Stack Overflow https://ift.tt/3nsR6eX
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations