function formatGridDate(theDate, rowIndex) { var rowdata = this.grid.getItem(rowIndex); var theDate = new Date(parseInt(rowdata.<your date filed name here>)); theDateString = dojo.date.locale.format(theDate, { selector: 'date', datePattern: 'MM/dd/yyyy' }); return theDateString; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.