1

I'm trying to find a way to update only the "time" part. (only with mongodb)

For example, I have the following datetimes

2018-01-03 01:00:00.000
2018-01-04 02:00:00.000
2018-01-05 03:00:00.000

And I want to update only the time. The desired result is

2018-01-03 10:00:00.000
2018-01-04 10:00:00.000
2018-01-05 10:00:00.000
Michalis
  • 6,686
  • 13
  • 52
  • 78

0 Answers0