I do not find a nice way to get a DateTimeOffset value to JavaScript (angular2). I am using WebApi (5.2.3) and angular2. On the wire I see the date as follow:
RecordModifiedAt : "2016-03-08T17:27:11.9975483+01:00"
JavaScript/angular2 does not recognize this as valid datetime value.
I do have options, but what direction should I go:
- Server side: Newtonsoft.Json, ...
- Client side: angular2, ...
- Others?
Many thankx for your help!
new Date("2016-03-08T17:27:11.9975483+01:00"), you get a valid date object in JavaScript with the correct time and date