Hi Neil,
I guess the support of .format was dropped in Innovator 12. As far as I know .format is not a native JavaScript function in Data.prototype.
I took a quick look and checked how Aras deals with dates, e.g. in the Method ES_ReindexAll. In 11SP15 .format still was used, but the code line does not seem to work at all. In 12SP3 a new version showed up that does not use .format. A clear hint that something went wrong in the past.
You could use var mydate = new Date().toLocaleDateString("en-US")); or DateTimeFormat.
Angela,
You're very awesome! Thank you. It ends up my effort to zero-pad months and days from the value of the dojo dijit calendar is fruitless anyway.
I ended up doing a split and padStart(2, '0') on the month and day portion of the day and then rejoining. BUT, what I really want is to provide the calendar with a format to use on its value. I really need to figure out how to use the various properties/settings on all these dojo widgets within the context of Aras Innovator.
Thank you very much for being awesome and taking a look at this issue. I wonder if Aras knows that the old code is broken?
Anyway, good day,
Neil
Angela,
You're very awesome! Thank you. It ends up my effort to zero-pad months and days from the value of the dojo dijit calendar is fruitless anyway.
I ended up doing a split and padStart(2, '0') on the month and day portion of the day and then rejoining. BUT, what I really want is to provide the calendar with a format to use on its value. I really need to figure out how to use the various properties/settings on all these dojo widgets within the context of Aras Innovator.
Thank you very much for being awesome and taking a look at this issue. I wonder if Aras knows that the old code is broken?
Anyway, good day,
Neil