dojo/date/locale offers a library of localization methods to format and parse dates and times.
Dojo comes with a powerful library to format and parse dates and times using local language and conventions, from your choice of hundreds of locales, or as you would like using custom date/time patterns.
dojo/date/locale offers the following methods:
Adds a reference to a bundle containing localized custom formats to be used by date/time formatting and parsing routines.
Formats a Date object as a String, using locale-specific settings or custom patterns.
Used to get localized strings from dojo/cldr for day or month names.
Determines if the date falls on a weekend, according to local custom.
Converts a properly formatted string to a primitive Date object, using locale-specific settings.
Builds the regular needed to parse a localized date.