JSON console log is returning string instead of Date

  angular, ionic-framework, json, typescript

I’ve been struggling for quite a moment now and can’t figure out why two identical JSON Objects elements are logged differently…

In the first one I get :
First Case

In the second one I get :
Second Case

As for the code for the first one it’s : "end": "2021-04-23T12:30:00",
And the second one : "end": "2021-04-23T12:30:00",

It’s from a dummy JSON data that I call through a fake API with JSONPlaceholder tool.

I’m working on Ionic Angular.

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.