Formatting Date field for custom info window

Discussion created by andrew.pericak on Nov 4, 2013
Latest reply on Nov 4, 2013 by evtguy
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.