microsoft / node-api-dotnet

Advanced interoperability between .NET and JavaScript in the same process.
MIT License
495 stars 53 forks source link

Improve date/time marshalling #306

Closed jasongin closed 3 months ago

jasongin commented 3 months ago

Fixes: #277

Previously the marshalling of .NET DateTime, DateTimeOffset, and TimeSpan types to/from JavaScript was incomplete and inconsistent with the doc. This PR fully implements the marshalling of these types. See documentation in Docs/dates.md for a design overview.