Mongodb data source from Grafana

I’m using mongodb data source from Grafana, where i’m trying to match with Grafana dashboard timelines with startDateTime event time(it’s in UTC timezone) from Mongodb but it’s not working, can you please help check the below peice of code and let me know if you could help

db.Collection.find(
{
startDateTime: {
$gte: new Date($__timeFrom()),
$lte: new Date($__timeTo())
}
},
{
_id: 0,
fieldname: 1,
name: 1
}
);