How to compare datetime in dgraph?

That looks correct, do you have the datetime schema type on create_date?