Skip to content

Instantly share code, notes, and snippets.

@cbmeeks
Created October 13, 2016 12:51
Show Gist options
  • Save cbmeeks/e602cfbf43f261719374bfd99c296912 to your computer and use it in GitHub Desktop.
Save cbmeeks/e602cfbf43f261719374bfd99c296912 to your computer and use it in GitHub Desktop.
renderer: function (value) {
if (value) {
var millis = value;
var year = new Date(millis).getFullYear();
var month = new Date(millis).getMonth();
var day = new Date(millis).getUTCDate();
return Ext.util.Format.date(new Date(year, month, day, 0, 0, 0), 'm-d-Y');
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment