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

Function date2DateStr

lib/util/date.js:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35};
36
37var date2DateStr = function date2DateStr() {
38 var date = arguments.length <= 0 || arguments[0] === undefined ? new Date() : arguments[0];
39
40 var _date2Obj = date2Obj(date);
41
42 var year = _date2Obj.year;
43 var month = _date2Obj.month;
44 var day = _date2Obj.day;
45
46 return obj2DateStr(year, month, day);
47};
48
49var obj2DateStr = function obj2DateStr(year, month, day) {
50 if (month < 10) month = "0" + month;

Callers 1

Calender.jsFile · 0.50

Calls 2

date2ObjFunction · 0.70
obj2DateStrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…