talk3 / src /utils /functions /index.ts
lmtt's picture
Duplicate from lmtt/talk4
533bab2
export function getCurrentDate() {
const date = new Date()
const day = date.getDate()
const month = date.getMonth() + 1
const year = date.getFullYear()
return `${year}-${month}-${day}`
}