If you correctly manage your data types, you can do the work of subtraction correctly and in exactly the same way in all three systems.
Since SQLite does not have a datetime data type, you can store date values as integers and usually subtract dates.
MSSQL allows you to subtract datetime, and when used as an int will give you the number of days between them.
MySQL must allow the subtraction of DATE data types. (You can check it out.)
source
share