How to convert date kept in string to new date in mongo

I have JSON in following format:

{
    "dateFrom": "10 Apr 2020",
    "dateTo": "10 Jan 2021",
  

}

Now how can I sort or filter on date range using shell or Compass?

Basically i want function which can convert it into real date.

Pls send query. It will be helpful.
note i do not want to use aggregation.

yours sincerley

Welcome to the forums @raje.
What have you tried?
I used your title in a Google search and got back responses that may be what you’re looking for.

i can not see the responses.
do u support mongo qurieis?