MCPcopy Create free account
hub / github.com/experdot/pointer / formatDateOnly

Function formatDateOnly

src/renderer/src/utils/timeFormatter.ts:62–64  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

60 * @returns YYYY-MM-DD 格式的日期字符串
61 */
62export const formatDateOnly = (timestamp: number): string => {
63 return dayjs(timestamp).format('YYYY-MM-DD')
64}

Callers 1

UpdateSettingsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected