MCPcopy Create free account
hub / github.com/6dylan6/jdm / formatDate

Method formatDate

function/magic.js:820–825  ·  view source on GitHub ↗
(date, fmt)

Source from the content-addressed store, hash-verified

818 }
819
820 formatDate(date, fmt) {
821 // noinspection JSCheckFunctionSignatures
822 return format(typeof date === 'object' ? date : new Date(
823 typeof date === 'string' ? date * 1 : date),
824 fmt || 'yyyy-MM-dd')
825 }
826
827 //yyyy-MM-dd HH:mm:ss
828 parseDate(date) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected