You can use MySQL’s inbuilt function TIMESTAMPDIFF to get difference between two dates in MySQL. A typical query would be
SELECT TIMESTAMPDIFF(SECOND,date_column_from ,date_column_to) FROM table_name;
You can use MySQL’s inbuilt function TIMESTAMPDIFF to get difference between two dates in MySQL. A typical query would be
SELECT TIMESTAMPDIFF(SECOND,date_column_from ,date_column_to) FROM table_name;