dojo/date/locale

dojo/date/locale offers a library of localization methods to format and parse dates and times.

Introduction

When you want to present dates or times to the user, JavaScript only knows how to handle a single locale and language, and the actual format is implementation-dependent, and your web application has no control over these choices.

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.

Features

dojo/date/locale offers the following methods:

See also

Error in the documentation? Can’t find what you are looking for? Let us know!