Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

Windows Runtime DateTime and TimeSpan Representations

The JavaScript representation of dates and times is different from the Windows Runtime version. The Windows Runtime DateTime structure is represented in JavaScript as a Date that has a backing store that matches the DateTime data (and has a different range and precision from the JavaScript Date). If you modify this custom Date object, it becomes a standard JavaScript Date and loses precision. JavaScript Date values can be passed to a Windows Runtime DateTime and will be range-checked, which might result in marshaling exceptions.

The Windows Runtime TimeSpan structure is converted to milliseconds and returned as a JavaScript number.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.