neo4j-javascript-driver icon indicating copy to clipboard operation
neo4j-javascript-driver copied to clipboard

`Time` and `LocalTime` types lack method `.toStandardDate()`

Open stefano-ottolenghi opened this issue 1 year ago • 1 comments

The neo4j.Time and neo4j.LocalTime date types seem to lack the method .toStandardDate(). Other types have it, including neo4j.DateTime which supports nanoseconds.

stefano-ottolenghi avatar Apr 05 '23 07:04 stefano-ottolenghi

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

bigmontz avatar Apr 06 '23 07:04 bigmontz