new Date() not match correctly data in mongodb

problem:
$gte: ${year}-01-01,
$lte: ${year}-12-31,

problem solution:
$gte:"${new Date(${year}-01-01)}",
$lte:"${new Date(${year}-12-31)}"