MCPcopy
hub / github.com/DevCloudFE/ng-devui / formatDate

Function formatDate

devui/utils/date-utils.ts:20–22  ·  view source on GitHub ↗
(date: Date, pattern = 'y-MM-dd HH:mm:ss')

Source from the content-addressed store, hash-verified

18}
19
20export function formatDate(date: Date, pattern = 'y-MM-dd HH:mm:ss'): string {
21 return isValidDate(date) ? datefns.format(date, pattern) : '';
22}

Callers 4

transformMethod · 0.90
formatDateMethod · 0.85
formatDateTimeMethod · 0.85

Calls 2

isValidDateFunction · 0.85
formatMethod · 0.65

Tested by

no test coverage detected