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.
  • 31,164
  • 13
  • 93
  • 151

1 Answers1

1

X is miliseconds. [its not microseconds]

kaushik gandhi
  • 768
  • 8
  • 14