I\'m trying to write a query that takes a Javascript date object and then puts it in an object type that is recognized by both SQL Server and Oracle database types.
May be I found a bit shorter approach - tested on MSSQL and Postgres
const date = (new Date()).toLocaleString("en-US")
Enjoy!