将日期或日期字符串转换为YYYY-MM-DD格式的日期值
日期对象或日期字符串
YYYY-MM-DD格式的日期字符串
// 返回 "2023-01-15"toDateValue(new Date(2023, 0, 15)) Copy
// 返回 "2023-01-15"toDateValue(new Date(2023, 0, 15))
// 返回 "2023-01-15"toDateValue('2023-01-15T10:30:00.000Z') Copy
// 返回 "2023-01-15"toDateValue('2023-01-15T10:30:00.000Z')
将日期或日期字符串转换为YYYY-MM-DD格式的日期值