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

Function date2DateStr

component/util/date.js:33–36  ·  view source on GitHub ↗
(date = new Date())

Source from the content-addressed store, hash-verified

31};
32
33const date2DateStr = (date = new Date()) => {
34 let {year, month, day} = date2Obj(date);
35 return obj2DateStr(year, month, day);
36};
37
38const obj2DateStr = (year, month, day) => {
39 if (month < 10) month = `0${month}`;

Callers 2

handleClickFunction · 0.50
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…