You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the experimental temporal support is not enabled, we could still use temporal objects internally (instead of js-joda) and just return Date objects instead.
There's an upcoming EcmaScript specification that adds better date and time handling support to JavaScript.
The functionality in this specification would allow us to greatly improve the support different date and time related data types.
Here's a list of SQL Server data types and the corresponding types from the temporal spec that they should map to/from:
date
->Temporal.PlainDate
datetime
->Temporal.PlainDateTime
datetime2
->Temporal.PlainDateTime
datetimeoffset
->Temporal.ZonedDateTime
smalldatetime
->Temporal.PlainDateTime
time
->Temporal.PlainTime
With the experimental feature turned on, we shouldn't support
Date
objects at all anymore - their handling is awkward and error prone.There's two polyfills available that we could use to implement this:
The text was updated successfully, but these errors were encountered: