9 lines
315 B
TypeScript
9 lines
315 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { dateTimeFormat } from '@/scripts/intl-const.js';
|
|
|
|
export default (d: Date | number | undefined) => dateTimeFormat.format(d);
|
|
export const dateString = (d: string) => dateTimeFormat.format(new Date(d));
|