neo4j-javascript-driver
neo4j-javascript-driver copied to clipboard
`Time` and `LocalTime` types lack method `.toStandardDate()`
The neo4j.Time
and neo4j.LocalTime
date types seem to lack the method .toStandardDate()
. Other types have it, including neo4j.DateTime
which supports nanoseconds.
neo4j.Time
and neo4j.LocalTime
doesn't have information about the day. So, it's not possible to create global.Date
from it.
One alternative is to use current date as the date or enable use to define in which date they wan't the time.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date