diff --git a/core/src/components/datetime/datetime-util.ts b/core/src/components/datetime/datetime-util.ts index 90975c1b618..61f584cf5f1 100644 --- a/core/src/components/datetime/datetime-util.ts +++ b/core/src/components/datetime/datetime-util.ts @@ -11,7 +11,7 @@ export function renderDatetime(template: string, value: DatetimeData, locale: Lo const token = '{' + index + '}'; const text = renderTextFormat(format.f, (value as any)[format.k], value, locale); - if (!hasText && text && (value as any)[format.k]) { + if (!hasText && text && (value as any)[format.k] != null) { hasText = true; }