0

Refering to this question https://stackoverflow.com/questions/18212982/date-sub-interval-equivalent-in-mongodb, I need to subtract N days from a Date object. As MongoDB uses Javascript datatypes, my question is:

On subtracting X from Date(), is X the number of seconds? Or Minutes? Or Microseconds?

Community
  • 1
  • 1
Daniel W.
  • 29,184
  • 13
  • 85
  • 142

1 Answers1

1

X is miliseconds. [its not microseconds]

kaushik gandhi
  • 740
  • 8
  • 14