MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / dateTupleToMMDDYY

Function dateTupleToMMDDYY

date-conversion-attention/date_format.js:111–116  ·  view source on GitHub ↗
(dateTuple)

Source from the content-addressed store, hash-verified

109
110/** Date format such as 012019. */
111export function dateTupleToMMDDYY(dateTuple) {
112 const monthStr = toTwoDigitString(dateTuple[1]);
113 const dayStr = toTwoDigitString(dateTuple[2]);
114 const yearStr = `${dateTuple[0]}`.slice(2);
115 return `${monthStr}${dayStr}${yearStr}`;
116}
117
118/** Date format such as JAN 20 19. */
119export function dateTupleToMMMSpaceDDSpaceYY(dateTuple) {

Callers

nothing calls this directly

Calls 1

toTwoDigitStringFunction · 0.85

Tested by

no test coverage detected