bensayers

Format Date in InfoTemplate

Discussion created by bensayers on Sep 16, 2010
Latest reply on Mar 19, 2012 by sacdou
Hello,
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:
636249600000

When the date in the attribute table is:
01/03/1990

Any ideas?

Outcomes