UNPKG
@idris-maps/yyyy-mm-dd
Version:
latest (0.0.2)
0.0.2
0.0.1
A date library dealing only with days in the YYYY-MM-DD format
@idris-maps/yyyy-mm-dd
/
dist
/
fromJsDate.js
6 lines
(5 loc)
•
168 B
JavaScript
View Raw
1
2
3
4
5
6
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
= (
function
(
date
) {
return
date.
toISOString
().
split
(
'T'
)[
0
]; });