The Chrome bookmarks file is JSON which contains a "date_added" value that represents a particular date and time, e.g.
{
"checksum": "05b8bba8b5f0e9ad1cc8034755557735",
"roots": {
"bookmark_bar": {
"children": [ {
"children": [ {
"date_added": "13170147422089597",
"id": "121",
"name": "NativeScript: Getting Started Guide",
"type": "url",
"url": "https://docs.nativescript.org/tutorial/chapter-0"
} ],
...
I have tried treating the value as nanoseconds and passing to the Date constructor:
new Date(13170147422089597 / 1000); // 2387-05-07T06:17:02.089Z
but that doesn't seem correct.
How should the value "13170147422089597" be converted to a Date or date string?