Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var locales = new Globalization.LocaleList(['en', 'de-DE-u-co-phonebk']);
- var dtf = new Globalization.DateTimeFormat(locales,
- {year: 'long', month: 'long', day: 'long',
- hour: 'numeric', minute: '2-digit', second: '2-digit'});
- // dtf object can be inspected by looking at dtf.resolvedOptions property
- // so one can check if he got requested features (locale, option fields...)
- for (var i = 0; i < 50; i++) {
- var result = dtf.format(new Date());
- // Use result in a Forum page with 50 users.
- }
- // One time use, with default options.
- var single = new Globalization.DateTimeFormat(locales).format(new Date());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement