I have my API and I get it using HTTP GET I cast my info with my model Alert taht contains a Date type timestamp if I run the DataTable with a Date type I can sort the column, but the problem here is the format I'm getting the following format
Mon Sep 03 2018 01:56:36 GMT-0700 (Pacific Daylight Time (Mexico))
When I try to have a formated date like 09/03/2018 01:56:36 If I run the datatable with this format the sort doesn't work because it sort as String and not as Date
My question is: How can I have a Date Type formated as MM/DD/YYYY hh:mm:ss ??
Note: I'm using ng2-smart-table as Datable