Format Date in InfoTemplate

Discussion created by bensayers on Sep 16, 2010
Latest reply on Mar 19, 2012 by sacdou
I am trying to get a date from a column in my attribute table for a feature layer, yet I can only get a number version, does anyone know how I can easily convert this into a proper date? Or retrieve a date in the first place?

This is what I am doing:
var wellContent = "<b>Well Name</b>: ${NAME}<br><b>Spud Date</b>: ${SPUD}";

This is an example of what I am getting returned:

When the date in the attribute table is:

Any ideas?