I am trying to compare the start date field with current date but "new Date()" is converted to local time. Can someone help me to convert new date() into UTC date format since startDate field is stored with UTC dates in the database.
database.Models.EventModel.findOne({
$and: [
{ 'status': 'Accepted' },
{ 'startDate': { $gte: new Date() } }
],
}).sort('-startDate');