I'm working on a project that uses React redux typescript. The json file has
"data_start": "2022-09-02"
Is it possible to output it in this format?
(2022, 09, 02)
I'm just learning programming so I don't know how to do it
To get the desired output you could do the following:
`(${data_start.replaceAll('-', ', ')})`
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.