- MomentJS Tutorial
- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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|
You can add month names to the locale customization.
This method helps in customizing the month abbreviations.
This method helps in customizing the weekdays names as per locale.
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.
This method helps in obtaining the relative time.
This method helps in customizing the meridiem as per locale.
You can parse AM/PM using this method.
This helps in customizing calendar object for a locale set.
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.