const times = { text: "[\"2021-06-16 14:04:14\",\"2021-06-30 14:04:14\"]" } let [date1,date2] = JSON.parse(times.text) console.log(date1,date2)