2023-07-27 05:31:52 +00:00
|
|
|
/*
|
2024-02-13 15:50:11 +00:00
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
2023-07-27 05:31:52 +00:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-09-19 07:37:43 +00:00
|
|
|
import { dateTimeFormat } from '@/scripts/intl-const.js';
|
2023-01-01 08:11:33 +00:00
|
|
|
|
2023-07-07 22:08:16 +00:00
|
|
|
export default (d: Date | number | undefined) => dateTimeFormat.format(d);
|
2023-01-01 08:11:33 +00:00
|
|
|
export const dateString = (d: string) => dateTimeFormat.format(new Date(d));
|