UNPKG
code-story
Version:
latest (0.4.1)
0.4.1
0.4.0
0.3.0
0.2.3
0.2.2
0.2.0
0.1.0
0.0.1
Get your code activity log for standup from git
github.com/MoonW1nd/codestory
MoonW1nd/codestory
code-story
/
lib
/
helpers
/
date
/
getDayCode.js
9 lines
(8 loc)
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
var
chrono_node_1 =
require
(
"chrono-node"
);
var
getDayCode =
function
(
dateString
) {
var
date = chrono_node_1.
parseDate
(dateString);
return
String
(date.
getDay
()); };
exports
.
default
= getDayCode;