This is just a performance test, but I did some test cases before you all press the down button =]
I just want to verify that comparing dates from a MySQL database in the format YYYY-MM-DD HH:MM:SS in JavaScript will work correctly. Unfortunately, I cannot edit the request to return a Unix timestamp.
Example:
console.log('2010-05-22 00:54:12' > '2010-05-21 11:44:32');
All of my test cases seem to suggest that this works well, but I just need to make sure.
My Google-fu may be weak, but I can't find anything on the Internet. Does anyone know for sure?
source share