In Microsoft Access Database, we use the following to format our date as a Timestamp.
DATEDIFF('s', LoadDate, now()) as timestampsWe are comparing our ColumnName of LoadDate with the Access Date function of NOW() to get a timestamp.
The following lines are broken up.
LoadDate = 2022-04-18 00:00:00.000now() = 2022-04-21 23:09:56.137timestamp = 342596
HOWEVER, in SQL Server, we have to use its built-in function, getdate().
DATEDIFF(second, LoadDate, getdate()) as timestamps