From 1081951cda19a7b4d64a76069f3f067769f2c61c Mon Sep 17 00:00:00 2001 From: Serhii Pylypchuk Date: Wed, 14 Feb 2024 14:08:56 +0300 Subject: [PATCH] [update] time format localization --- docs/guides/localization.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/guides/localization.md b/docs/guides/localization.md index 6233f03..5bdaca1 100644 --- a/docs/guides/localization.md +++ b/docs/guides/localization.md @@ -377,7 +377,6 @@ const calendar = new eventCalendar.EventCalendar("#root", { }); ~~~ - ## Time and Date format This example shows how to configure **Date** and **Time** settings: @@ -405,6 +404,14 @@ const event_calendar = new EventCalendar("#root", { }); ~~~ +Use the `timeFormat` property to switch from 12-hour format to 24-hour format: + +~~~jsx +en.calendar.timeFormat = 12; +// or +en.calendar.timeFormat = 24; +~~~ + :::tip Refer to the [**Format**](https://date-fns.org/v3.3.1/docs/format) topic for more information. :::