I have Datetimes formated as "16 Apr 2020 02:07 PM CST" and I need to compare it to another datetime just like that to know which date came first.
What I tried to do until now was:
var firstDate = "16 Apr 2020 02:07 PM CST";
var secondDate = "23 Apr 2020 06:07 AM CST";
var diff = Math.abs(firstDate - secondDate);
That or I tried to check if one was greater than the other and got similar results.