neo4j / neo4j-javascript-driver

Neo4j Bolt driver for JavaScript

Home Page:https://neo4j.com/docs/javascript-manual/current/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

stefano-ottolenghi opened this issue · 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.

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