// yyyy-mm-dd new Date().toISOString().slice(0, 10)
const yourDate = new Date() yourDate.toISOString().split('T')[0]