Skip to content

Commit

Permalink
[update] time format localization
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiipylypchuk1991 committed Feb 14, 2024
1 parent 8952324 commit 1081951
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/guides/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ const calendar = new eventCalendar.EventCalendar("#root", {
});
~~~


## Time and Date format

This example shows how to configure **Date** and **Time** settings:
Expand Down Expand Up @@ -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.
:::
Expand Down

0 comments on commit 1081951

Please sign in to comment.