Currently the default is `toISOString()`, we should expose functionality for client to set the formatting for `Date` types when we write to the database.
Currently the default is
toISOString(), we should expose functionality for client to set the formatting forDatetypes when we write to the database.