MCPcopy Index your code
hub / github.com/flyfloor/react-component / obj2DateStr

Function obj2DateStr

component/util/date.js:38–42  ·  view source on GitHub ↗
(year, month, day)

Source from the content-addressed store, hash-verified

36};
37
38const obj2DateStr = (year, month, day) => {
39 if (month < 10) month = `0${month}`;
40 if (day < 10) day = `0${day}`;
41 return `${year}-${month}-${day}`;
42};
43
44module.exports = {
45 dateStr2Obj, date2DateStr, date2Obj, obj2DateStr

Callers 4

date2DateStrFunction · 0.70
initDateFunction · 0.50
Calender.jsFile · 0.50
initDateFunction · 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…