crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>Convert a string into a date object.</h2> <p id="demo"></p> <script> const text = '{"name":"Ahmed", "birth":"1986-12-14", "city":"New York"}'; const obj = JSON.parse(text); obj.birth = new Date(obj.birth); document.getElementById("demo").innerHTML = obj.name + ", " + obj.birth; </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+Q29udmVydCBhIHN0cmluZyBpbnRvIGEgZGF0ZSBvYmplY3QuPC9oMj4NCjxwIGlkPSJkZW1vIj48L3A+DQoNCjxzY3JpcHQ+DQpjb25zdCB0ZXh0ID0gJ3sibmFtZSI6IkFobWVkIiwgImJpcnRoIjoiMTk4Ni0xMi0xNCIsICJjaXR5IjoiTmV3IFlvcmsifSc7DQpjb25zdCBvYmogPSBKU09OLnBhcnNlKHRleHQpOw0Kb2JqLmJpcnRoID0gbmV3IERhdGUob2JqLmJpcnRoKTsNCmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJkZW1vIikuaW5uZXJIVE1MID0gb2JqLm5hbWUgKyAiLCAiICsgb2JqLmJpcnRoOyANCjwvc2NyaXB0Pg0KDQo8L2JvZHk+DQo8L2h0bWw+