I want to import the unix timestamp (contained in an received Json body) into my MSSQL database as a human readable time using Node.js.
The Json body looks like this:
{
"device":"887B53",
"data":"4660000000000062b4a8",
"station":"1B2C",
"rssi":"-123",
"time":"1586096200"
}
My question:
Does MSSQL support a datatype that is used for unix timestamp in order to make it human readable?
If not, how do I format this timestamp before inserting it into my MSSQL server?
I have already tried to format it before importing. But so far I could not find a data type that accepts this format:
const time = new Date(request.payload.time *1000)