Dates, Numbers, and Currency
Additional Core facilities provide additional support for
manipulating and supporting internationalization of dates, numbers,
and currency via the dojo.date,
dojo.number, and dojo.currency modules, respectively. In
Part II, you'll learn that Dijit makes
extensive use of these modules to provide advanced support for
commonly used widgets. This section provides a quick inventory of
these features.
Dates
Table 6-2 shows a quick
overview of the dojo.date module.
As you'll see, there are some real gems in here if you ever need to
perform any routine processing of the built-in Date object.
Table 6-2. Summary of the date module
Name | Return type | Comment |
|---|---|---|
|
| Returns the number of
days in |
|
| Returns |
|
| Returns time zone
information as defined by the browser. A |
|
| Returns 0 if the two
parameters are equal; returns a positive number if |
|
| Provides a convenient ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access