107f987
1
2
3
4
5
6
7
8
export function getCurrentDate() { const date = new Date() const day = date.getDate() const month = date.getMonth() + 1 const year = date.getFullYear() return `${year}-${month}-${day}` }