Format the date when the type of the column is date.
d - Day of the month as digits; no leading zero for single-digit days.
dd - Day of the month as digits; leading zero for single-digit days.
m - Month as digits; no leading zero for single-digit months.
mm - Month as digits; leading zero for single-digit months.
yy - Year as last two digits; leading zero for years less than 10.
yyyy - Year represented by four digits.
s - Seconds; no leading zero for single-digit seconds.
ss - Seconds; leading zero for single-digit seconds.
M - Minutes; no leading zero for single-digit minutes. Uppercase MM to avoid conflict with months.
MM - Minutes; leading zero for single-digit minutes. Uppercase MM to avoid conflict with months.
H - Hours; no leading zero for single-digit hours (24-hour clock).
HH - Hours; leading zero for single-digit hours (24-hour clock).
h - Hours; no leading zero for single-digit hours (12-hour clock).
hh - Hours; leading zero for single-digit hours (12-hour clock).
tt - Lowercase, two-character time marker string: am or pm.
TT - Uppercase, two-character time marker string: AM or PM.
Examples
sample
<table id="grid"></table>
<script>
$('#grid').grid({
dataSource: '/Players/Get',
columns: [
{ field: 'ID', width: 56 },
{ field: 'Name' },
{ field: 'DateOfBirth', title: 'Date 1', type: 'date', format: 'HH:MM:ss mm/dd/yyyy' },
{ field: 'DateOfBirth', title: 'Date 2', type: 'date' }
]
});
</script>