I'm using the node/typescript Neo4J driver to query for a time property on Neo4J nodes, input and displayed in the console as an ISO-8601 string.
const updateTime = neo4jresponse.map((j) => {
return {
updateTime: get(j.toObject(), 'a.properties.updatedAt'),
};
});
It returns a nested object:
{
"test1updatedAt": {
"year": {
"low": 2021,
"high": 0
},
"month": {
"low": 12,
"high": 0
},
"day": {
"low": 16,
"high": 0
},
"hour": {
"low": 15,
"high": 0
},
"minute": {
"low": 36,
"high": 0
},
"second": {
"low": 52,
"high": 0
},
"nanosecond": {
"low": 0,
"high": 0
},
"timeZoneOffsetSeconds": {
"low": 0,
"high": 0
}
}
}
I'm exploring the apoc.date library for returning the date back in an ISO-8601 string, but I can't seem to find a function that will return in the correct form. How do I return a time from Neo4J in ISO string?