I am a newbie to neo4j and have been struggling in making a cypher. The scenerio is, i am working on a new feature which will enable users to create reminders for themselves. The user will choose date and time for the reminder along with some other information. What i am asked to do is, save the reminder node with one more property (i.e timestamp) so that it will be easy to sort reminders according to timestamp. But however, i am unable to figure out a way to convert the the combination of the provided date and time to a timestamp. Have gone through all the documentation, still no luck. Can anyone help here? Please let me know if i have missed anything.
You can use the datetime function. Here is an example from the docs that illustrates calling it. As shown, it takes a map of the date and time components. You can create a map from you user’s inputs.
Hi, thanks for the quick reply. But i want to convert it in unix times stamp. Is there any way, we can combine the given date and time and then convert that combination in UNIX timestamp.
Is there any function for that? Like timestamp() function.