Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70

localization_date

Library that aids in the processing of date strings, appropriate to the cultural differences for the user of the app, for display purposes.

Require Extended Library: 

Code Block
var localization_date = require('localization_date');

Methods

Name 

Description 

localization_date.format

Formats an RFC822 or ISO 8601 date string and displays a localized date based on the phone's preferred locale.

For example, take the thirtieth day in the month of April for the year 2013. For the US locale, the phone would display 04/30/2013. If your phone's localization setting were set to the UK and you used this library, your display would read 30/04/2013.