Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Phone API Reference - Extended - localization_date

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: 

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.

  • No labels