How to store time data type in neo4j? -
i created user nodes value-time:
create (u1:user {name:'user 1', pickuptime:'10:10', dropofftime:'10:35'})
i wonder way (format) store time, because when kind of queries
match (u:user) return u.name name, u.pickuptime picktime order picktime desc
i got result
name picktime user 3 9:30 user 2 10:20 user 1 10:10
and need ordered result:
name picktime user 3 9:30 user 1 10:10 user 2 10:20
any suggestions? in advance
two notes:
you should use format hh:mm means need specify 9:30 09:30.
also in previous case need specify "order picktime asc" , not desc if obtain order desire
Comments
Post a Comment