Search code examples
graph-databasesmemgraphdb

DateTime object in Memgraph


I am working with Memgraph and I am using dates. I need to have the date in a specific format like "MM:DD:YYYY" and others but what if I just have the DateTime object passed?


Solution

  • If you want to have a datetime object saved as Date in Memgraph, then it needs to be in the appropriate format. For strings, the date format is specified by ISO 8601: YYYY-MM-DD or YYYYMMDD or YYYY-MM.