현재 데이터가 date 가 아니라 string으로 되어 있어서 먼저 변환을 해줘야 하나
https://docs.mongodb.com/v4.2/reference/operator/aggregation/dateFromString/
$dateFromString (aggregation) — MongoDB Manual
timezone Optional. The time zone to use to format the date. Note If the dateString argument is formatted like ‘2017-02-08T12:10:40.787Z’, in which the ‘Z’ at the end indicates Zulu time (UTC time zone), you cannot specify the timezone argument. all
docs.mongodb.com
전체적인 MongoDB 함수 다 있으니 참고하세요
'2021-1 > Expert' 카테고리의 다른 글
MongoDB | Aggregate Group by 같은 년도 (0) | 2021.10.29 |
---|---|
MongoDB | Aggregate(집계) substr (0) | 2021.10.28 |
MongoDB | Aggregate Group by (0) | 2021.10.27 |
Expert | MongoDB 에 질의 생성 (0) | 2021.10.26 |
LDA | 이 결과는 과연 신뢰할 만한 결과인가 (0) | 2021.10.26 |