Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time and LocalTime types lack method .toStandardDate() #1075

Open
stefano-ottolenghi opened this issue Apr 5, 2023 · 1 comment
Open

Time and LocalTime types lack method .toStandardDate() #1075

stefano-ottolenghi opened this issue Apr 5, 2023 · 1 comment

Comments

@stefano-ottolenghi
Copy link
Contributor

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

@bigmontz
Copy link
Contributor

bigmontz commented Apr 6, 2023

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 bigmontz added discussion and removed bug labels Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants