column.format : string Default: undefined


Format the date when the type of the column is date. This configuration setting is going to work only if you have implementation of format method for the Date object. You can use external libraries like http://blog.stevenlevithan.com/archives/date-time-format for that.

Examples

  
Edit this example
<table id="grid"></table> <script src="http://stevenlevithan.com/assets/misc/date.format.js"></script> <script> $("#grid").grid({ dataSource: "../Grid/GetPlayers", columns: [ { field: "ID" }, { field: "Name" }, { field: "DateOfBirth", type: 'date', format: 'HH:MM:ss mm/dd/yyyy' } ] }); </script>