cancel
Showing results for 
Search instead for 
Did you mean: 

date("04-26-2022") <- This should work

tard_gabriel
Ninja
Ninja

Bad news for data scientist, date functions still sucks!

It cannot convert a simple string like this one "04-26-2022" from the USA to a date.
I lost again an hour trying to figure out a way to convert it reading about apoc stuff.

Why does it have to be this huge thing:

date(apoc.date.convertFormat("04-26-2022", "MM-dd-yyyy", "yyyy-MM-dd"))
Instead of:
date("04-26-2022")

Can we overwrite or contribute to this data function?

 

0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.