UNPKG
healthone
Version:
latest (7.0.0)
7.0.0
6.1.0
6.0.2
6.0.1
6.0.0
5.0.2
5.0.1
5.0.0
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.0.0
2.0.0
1.0.0
0.1.0
0.0.1
0.0.0
Health One format library for JavaScript
infoderm.github.io/healthone
infoderm/healthone
healthone
/
dist
/
module
/
parseDate.js
2 lines
•
239 B
JavaScript
View Raw
1
2
import
{parseISO
as
dateParseISO}
from
"date-fns"
;
import
sliceDate
from
"./sliceDate.js"
;
export
default
function
parseDate
(
a
){
const
{
year
:b,
month
:c,
day
:d}=
sliceDate
(a);
return
dateParseISO
(
`
${b}
-
${c}
-
${d}
`
)}
//# sourceMappingURL=parseDate.js.map