common: type is now optional in getFormattedDate

This commit is contained in:
Abdullah Atta
2023-11-13 10:18:21 +05:00
parent f86186e020
commit 986752bc4d

View File

@@ -28,7 +28,7 @@ import { Reminder } from "@notesnook/core/dist/types";
export function getFormattedDate(
date: string | number | Date,
type: FormatDateOptions["type"]
type: FormatDateOptions["type"] = "date-time"
) {
return formatDate(date, {
dateFormat: database.settings?.getDateFormat() as string,