0

I am not able to format the date object received by JSON. The object looks like this

{
    "date": 2,
    "day": 1,
    "hours": 0,
    "minutes": 0,    
    "month": 2,
    "nanos": 0,
    "seconds": 0,
    "time": 1425234600000,
    "timezoneOffset": -330,
    "year": 115
}

Tried How to format JSON date? and many other ways but no luck!!!

I want to format the date in yyyy-MM-dd

EDIT:

This is how the object in my browser debugger looks like

enter image description here

Community
  • 1
  • 1
Raghu Chandra
  • 1,102
  • 1
  • 9
  • 14

0 Answers0