AnsweredAssumed Answered

FeatureTable dijit appears to ignore the dateOptions

Question asked by tsellste Champion on May 18, 2015
Latest reply on Dec 3, 2015 by evtguy

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

Outcomes