MCPcopy Create free account
hub / github.com/flyfloor/react-component / obj2DateStr

Function obj2DateStr

lib/util/date.js:49–53  ·  view source on GitHub ↗
(year, month, day)

Source from the content-addressed store, hash-verified

47};
48
49var obj2DateStr = function obj2DateStr(year, month, day) {
50 if (month < 10) month = "0" + month;
51 if (day < 10) day = "0" + day;
52 return year + "-" + month + "-" + day;
53};
54
55module.exports = {
56 dateStr2Obj: dateStr2Obj, date2DateStr: date2DateStr, date2Obj: date2Obj, obj2DateStr: obj2DateStr

Callers 3

date2DateStrFunction · 0.70
Calender.jsFile · 0.50
DatePicker.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…