i have objects stored in db like :
[
{
"created_at" : ISODate("2020-03-19T07:27:32.158Z"),
},
{
"created_at" : ISODate("2020-03-19T12:10:19.191Z"),
}
]
I would like to find data by created_at (that start with) like autocomplete : 25... , 25/01... , 25/01/202...
I have an input date that i can get data in the format : 25/01/2021 : dd/mm/yyyy.
the result can be 25 or 25/0 ,
in this case i need to find data that created_at : start with 25/0
it's like the method : $regex: "^" + date but with dates