Created
October 13, 2016 12:51
-
-
Save cbmeeks/e602cfbf43f261719374bfd99c296912 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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