UNPKG
@lifeomic/cli
Version:
latest (14.0.0)
14.0.0
13.15.1
13.15.0
13.14.1
13.14.0
13.13.0
13.12.0
13.11.0
13.10.0
13.9.0
13.8.1
13.8.0
13.7.0
13.6.0
13.5.0
13.4.0
13.3.0
13.2.0
13.1.0
13.0.0
12.5.0
12.4.0
12.3.0
12.2.0
12.1.1
12.1.0
12.0.0
11.10.0
11.9.0
11.8.1
11.8.0
11.7.0
11.6.0
11.5.0
11.4.0
11.3.0
11.2.0
11.1.0
11.0.0
10.3.0
10.2.0
10.1.0
10.0.2
10.0.1
10.0.0
9.15.0
9.14.3
9.14.2
9.14.1
9.13.0
9.12.0
9.11.0
9.10.0
9.9.0
9.8.1
9.7.0
9.6.0
9.5.0
9.4.1
9.4.0
9.3.0
9.2.0
9.1.0
8.3.1
8.3.0
8.2.1
8.2.0
8.1.0
8.0.3
8.0.2
8.0.1
8.0.0
7.6.0
7.5.0
7.4.0
7.3.0
7.2.1
7.2.0
7.1.3
7.1.2
7.1.1
7.1.0
7.0.0
6.15.5
6.15.4
6.15.3
6.15.2
6.15.1
6.15.0
6.13.0
6.12.0
6.11.0
6.10.1
6.9.0
6.8.0
6.7.0
6.6.0
6.5.0
6.4.0
6.3.0
6.2.0
6.1.3
6.1.2
6.1.1
6.1.0
6.0.2
6.0.1
6.0.0
5.10.0
5.9.1
5.9.0
5.8.2
5.8.1
5.8.0
5.7.0
5.6.0
5.4.0
5.3.5
5.3.3
5.3.2
5.3.1
5.3.0
5.2.3
5.2.2
5.2.1
5.1.0
5.0.0
4.2.0
4.1.0
4.0.2
4.0.1
4.0.0
CLI for interacting with the LifeOmic PHC API.
@lifeomic/cli
/
lib
/
dateConversion.js
13 lines
(11 loc)
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
module
.
exports
.
convertToISODateString
=
(
dateString
) =>
{
if
(dateString) {
try
{
return
new
Date
(dateString).
toISOString
(); }
catch
(err) {
console
.
log
(
`Provided date can not be converted to ISO standard date`
);
throw
err; } }
return
dateString; };