Hello @Guntaka_Jeevan_Paul ,
I don’t know if this will work, but before reading data from your collection, you should convert the purchaseDate to one specific type.
you can do so by using ‘$addField’ and ‘$toDate’ operators.
something like this -
{
$addFields: {
purchaseDate: {
$toDate: "$purchaseDate"
}
}
}