UNPKG

sao-clasp

Version:
7 lines (6 loc) 197 B
export function getDayFormat(date = new Date()):string{ const year = date.getFullYear(); const month = date.getMonth() + 1; const day = date.getDate(); return `${year}-${month}-${day}`; };