Dating zh

dating zh-1

Various other options are available to format the date.

You may choose to process only the date, only the time, or both, and you may decide to use your own custom date Pattern or time Pattern.

require(["dojo/ready", "dojo/date/locale", "dojo/query"], function(ready, locale, query){ function format(date, fmt){ return locale.format( date, {selector:"date", date Pattern:fmt } ); }; var init Dates = function(){ var date = new Date(2009,9,26,13,37,43,777); var fmto = "EEEE, MMMM d yyyy GGG, h:m:s.

SSS a z (ZZZZ)"; var fmt2 = "EEEE, MMMM d yyyy GGG, 'day' D, 'week' w, 'quarter' q, h:m:s.

SSS a z 'ie hour' H -- ZZZZ"; var txt = dojo.query( ".date" )[0]; txt.inner HTML = format( date, fmto ); var fmts = { explicit: fmto, simple: "MMM d, yyyy", abbreviated: "EEE, MMM d, yyyy G", full: "MMMM d, 'in the year' yyyy GGGG", time: "h:m:s.

Last modified 11-Feb-2016 03:48