I'm using JTable(for the first time) in my MVC application and want to display a Datetime column that need to display date and time. I am able to display the date. Here is how the column looks like in the JTable definition.
AssignedDate: {
title: 'Assigned Date',
width: '15%',
type: 'date',
displayFormat: 'mm/dd/yy',
create: false,
edit: false
},
How would I display the time? I know I need to change the type and displayFormat - but have no idea what to change those to.
the following are the options:
try setting the displayFormat: 'dd/mm/yy HH:mm:ss'
I have my
doubts if this works because when i read the jtable documentation
they were mentioning about having no time field. never mind give it
a shot.
Straightforward (but not the best) way in case you are just showing
the date and no editing is required convert the date into string at
the server side and show it in columntype: 'text'