'How can I fetch the data that was recorded on a specific day, for example 'monday'. based on millisecond
My collecttion like this:
{
"_id" :"6182f504ea218257521d09ff",
"client" :"6182ebe0ea218257521cdc1b",
"user" :"6182eb45ea218257521cd90d",
"time" : 1635509881847.0
}
I tried it, but not working and getting empty data:
{
$project:
{
dayOfWeek: { 'time': 'monday' }
}
} ,
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
