We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e6ffd commit 2399d4bCopy full SHA for 2399d4b
packages/core/src/lib/date.ts
@@ -32,8 +32,6 @@ function pad(num: number, length: number): string {
32
}
33
34
35
-
36
37
export const defaultDateTimeFormatOptions: Intl.DateTimeFormatOptions = {
38
year: 'numeric',
39
month: '2-digit',
@@ -52,7 +50,7 @@ export function formatDateTime(
52
50
input: number | string | Date,
53
51
locales: string | string[] = 'zh-CN',
54
options?: Intl.DateTimeFormatOptions,
55
-): any {
+): string {
56
57
const dateFormatter = locales && options
58
? new Intl.DateTimeFormat(locales, options)
0 commit comments