Hi everybody, I'm really new to JS so forgive me if this is an easy answer and/or if my description of the problem isn't adequate enough.
I have an info window and I'm trying to have it show the attributes for a Date field I have from a REST service I'm referencing. Right now, it's giving me a string of numbers; I know in theory I could fix this by using something similar to this sample. However, I've made a custom info window with a dojo TabContainer, so I can't use the ${Field} method to call the field and instead have to use the functionName.attributes.fieldName format. Is there a way for me to easily change the date format given this restriction? Thanks in advance.
Sounds to me like you're getting your date returned back to you in Epoch format. All you need to do is convert that date to a date string format and you're done. Beware, though- date formatting is one of the sticky wickets of the javaScript world. I have found that date formatting that works in Firefox may NOT work in IE or Chrome so you will definitely need to test your dates in any browsers you anticipate needing to support.
Dojo has its own internal date formatting functions but I've started using a library called date.js which seems to work well across IE, Chrome, and Firefox.