- MomentJS - Home
- MomentJS - Overview
- MomentJS - Environment Setup
- MomentJS - Introduction
- MomentJS - Parsing Date And Time
- MomentJS - Date Validation
- MomentJS - Getter/Setter
- Manipulate Date And Time
- Formatting Date And Time
- MomentJS - Date Queries
- MomentJS - Internationalization
- MomentJS - Customization
- MomentJS - Durations
- MomentJS - Utilities
- MomentJS - Plugins
- MomentJS - Examples
MomentJS - Customization
MomentJS allows to add customization to the locale created. This chapter discusses them in detail.
The following list shows the customizations possible on localization −
| Sr.No. | Localization & Description |
|---|---|
| 1 |
Month Names
You can add month names to the locale customization. |
| 2 |
Month Abbreviation
This method helps in customizing the month abbreviations. |
| 3 |
Weekday Names
This method helps in customizing the weekdays names as per locale. |
| 4 |
Weekday Abbreviation
This method helps in customizing the weekday abbreviations based on the locale set. |
| 5 |
Minimal Weekday Abbreviation
This method helps in customizing the Minimal Weekday abbreviations based on the locale set. |
| 6 |
Long Date Formats
This method helps in customizing longdateformat for a locale. |
| 7 |
Relative Time
This method helps in obtaining the relative time. |
| 8 |
AM/PM
This method helps in customizing the meridiem as per locale. |
| 9 |
AM/PM Parsing
You can parse AM/PM using this method. |
| 10 |
Calendar
This helps in customizing calendar object for a locale set. |
| 11 |
Ordinal
The ordinal display for dates can be changed based on locale. |
| 12 |
Relative Time Thresholds
This is used with duration.humanize where the length of duration is displayed as a few seconds ago, in a minute, an hour ago etc. |