i am trying to show the date in my grid in 24hr format but the grid is showing in different format
here is my code
var data = ‘[{“date”: “1988-05-23T12:05:21Z”}]’;
// prepare the data
var source =
{
datatype: “json”,
datafields: [
{ name: ‘date’, type: ‘date’ }
],
localdata: data
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(“#jqxgrid”).jqxGrid(
{
width: 300,
source: dataAdapter,
columns: [
{ text: ‘date’, datafield: ‘date’, cellsformat: ‘dd.MM.yyyy HH:mm:ss’ }
]
});
outcome is 23.05.1988 08:05:21
i am not sure in which format it is displaying can you explain about this.
and i also what to display the time in 23.05.1988 12:05:21 can you let me know who i can do this