What is the correct way to store date/time stamp in a gremlin-based database like Amazon Neptune?
When I try the following in python
current_timestamp = datetime.datetime.now()
g.E('d').property('otp_verified_on', current_timestamp).next()
it gives me output, something similar to
'otp_verified_on': datetime.datetime(2021, 11, 23, 9, 47, 30, 173000)
so I type cast to string
current_timestamp = datetime.datetime.now()
g.E('d').property('otp_verified_on', str(current_timestamp)).next()
to get the following result
'otp_verified_on': '2021-11-23 08:27:45.867543'
My queries are based on date comparison operation gte, lte`, etc...
Which is the better/correct way to implement?