Greetings,
I am attempting to use the FeatureTable dijit and format the date and time, but it appears that the dijit is ignoring the timePattern and datePattern options. Am I missing something or is this a bug? I have also tried the JS API example and uncommented the dateOptions, but the best I can get is a long date string instead of M/d/yyyy HH:mm:ss. What am I missing?
myTable = new FeatureTable({ "featureLayer" : myFeatureLayer, "dateOptions": { "timeEnabled" : true, "timePattern" : "HH:mm:ss", "datePattern" : "M/d/yyyy" }, "hiddenFields": ["FID","C_Seq","Street"], // field that end-user can show, but is hidden on startup "map" : map }, 'myTableNode');
formats to: Thu Nov 15 2012 16:00:00 GMT-0800 (Pacific Standard Time)
Thanks very much!
Regards,
Tom
Tom,
I am finding the same thing that both the datePattern and timePattern are ignored but the timeEnabled does work.
Kelly Hutchins are we missing something?
Robert,
Thanks very much for looking at it. It looks like it may be a bug. The API reference still shows it as beta 3.12.
Regards,
Tom
Currently the date/time options control the formatting of date/time editors which are currently disabled. We'll get this updated in the doc.
Kelly,
Thank you!
Tom
*bumping*
Kelly Hutchins is this still the case (that they aren't enabled)??