(year, month, day)
| 47 | }; |
| 48 | |
| 49 | var 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 | |
| 55 | module.exports = { |
| 56 | dateStr2Obj: dateStr2Obj, date2DateStr: date2DateStr, date2Obj: date2Obj, obj2DateStr: obj2DateStr |
no outgoing calls
no test coverage detected
searching dependent graphs…