Dear sirs or madams,
while loading plain dates with spring-data-neo4j formatted dates get converted into String while loading, please find below the code used for conversion, I was trying with a converter class and without following the the link:
forumlink
Blockquote
return value.toInstant()
.atZone(ZoneId.systemDefault())
.toLocalDate();
Blockquote
match(n:PERSON) where n.source = 'MANUALLY CREATED' return n.name,n.birthDate,apoc.meta.type(n.birthDate);
results in
---------------------------------------------------------------------------
|n.name |n.birthDate |apoc.meta.type(n.birthDate)|
|-----------------------------------------|-----------------|--------------|
|"MAXIMILIAN MUSTERFRAU"|"2020-06-01"|"STRING"|
|"MAX MUSTERFRAN "|"2018-10-02"|"STRING"|
Driver Version:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-bolt-driver</artifactId>
<version>3.2.8</version>
</dependency>
Is there any chance to get the data into the database as dates as expected.
Any help is appreciated.
Thanks in advance.
Malte R