The calendar component in uniapp requires a start time and an end time, which is in the form of a string, such as '2021-01-21'.
Component URL: https://ext.dcloud.net.cn/plugin?id=56
My need is to get 7 days ago to the present date in string form, ie
On the code:
The code can be streamlined, but I am already enough.
I'm @Fun-loving Ango, follow me for more useful knowledge