Unfortunately there is no Neo4j date yet :( It is on the roadmap but not worked on yet.
You can either store it as long value (seconds or milliseconds since 1970/1/1, date.getTime()) or as date string like 1970-01-01 for sorting and comparison. Depends on your use case what's better for you. Cheers, Michael > Am 25.01.2015 um 09:06 schrieb FERHAT Ilyes <[email protected]>: > > Hi all > Here a java code that converts date to Oracle_date: > > Public static java.Sql.Date convert_to_oracle_date(java.until.Date date) { > Try{ > Java.sql.Date var= new java.sql.Date(date.get time()); > Return(var); > } catch(Exception E) { > Return(null); > } > } > > My question is: is there a similar code to convert date to Neo4j_date?! > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
