MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / pad0

Function pad0

libs/datatables-binding-0.18/datatables.js:558–560  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

556 if (fmt !== undefined && isoFmt === false) return x[fmt.method].apply(x, fmt.params);
557 if (type === 'date') {
558 var pad0 = function(x) {
559 return ('0' + x).substr(-2, 2);
560 };
561 return x.getUTCFullYear() + '-' + pad0(1 + x.getUTCMonth())
562 + '-' + pad0(x.getUTCDate());
563 } else {

Callers 1

formatDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected