UNPKG
sao-clasp
Version:
latest (0.3.3)
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.1
gas clasp project template
github.com/takanakahiko/template-clasp
takanakahiko/template-clasp
sao-clasp
/
template
/
src
/
util.ts
7 lines
(6 loc)
•
197 B
text/typescript
View Raw
1
2
3
4
5
6
7
export
function
getDayFormat
(
date =
new
Date
()
):string{
const
year = date.
getFullYear
();
const
month = date.
getMonth
() +
1
;
const
day = date.
getDate
();
return
`
${year}
-
${month}
-
${day}
`
; };