$date is not supporting mongoDbTemplate in spring boot

I’m facing issue with date, when I try to fetch data on 2 dates it’s returning null

$date is not supporting mongoDbTemplate in spring boot

{ “rowCreationDate” : { “$gte” : ISODate(“2018-08-07T14:13:10.979Z”), “$lte” : ISODate(“2020-09-07T14:13:10.980Z”) } }

How to write same query in using mongoDbTemplate?

Without ISODate word query is not working so is there any solution for this?

I got got the solution. java - How to fetch data from mongoDB based on two dates in spring boot? - Stack Overflow