I have some variables of type Datetime stored, whose value when I debug is in the following format (for obvious reasons): 11/11/2020 00:00:00
and this way in the database: 2020-11-17 09:06:04.0
Everything ok with this, but when i try to print them on screen, in a tabla created with javascript, it seems like this:
The code of the table is:
self.cols = [
{ field: "usuario", title: "Usuario", filter: { usuario: "text" }, sortable: "usuario", show: true },
{ field: "fecha", title: "Fecha Inserción", filter: { fecha: "text" }, sortable: "fecha", show: true },
];
fecha is the name of the datetime var.
EDIT: I am sending the data from C# by filling a list with the DB data. Then, in the function i return a json variable with that:
var json = Json(new
{
data = LstOrquestadorData,
}, JsonRequestBehavior.AllowGet);
json.MaxJsonLength = 500000000;
return json;
In this, LstOrquestadorData is the name of the list.