Currently, I am using Knex.js to retrieve records from a SQLite database. My goal is to then convert these records into JSON as part of a web api. As it stands, the dates retrieved from SQLite are in the format 2018-01-01 00:00:00.000
Instead, I would like them to be in the format that JavaScript's date toJSON() function produces: 1975-08-19T23:15:30.000Z
Is there a method available to have the database automatically format the date fields in this manner when querying it?