Select to view content in your preferred language

FeatureTable dijit appears to ignore the dateOptions

4000
5
05-18-2015 01:37 PM
TomSellsted
MVP Regular Contributor

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

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

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?

TomSellsted
MVP Regular Contributor

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

0 Kudos
KellyHutchins
Esri Frequent Contributor

Currently the date/time options control the formatting of date/time editors which are currently disabled. We'll get this updated in the doc.

TomSellsted
MVP Regular Contributor

Kelly,

Thank you!

Tom

0 Kudos
SteveCole
Frequent Contributor

*bumping*

Kelly Hutchins​ is this still the case (that they aren't enabled)??

0 Kudos