As is, there aren't date arithmetic operators, so your best bet might be to store your dates as integers (eg. number of milliseconds since the epoch) and use the standard arithmetic operators.
On Wednesday, October 10, 2012 3:23:07 AM UTC-4, Sam wrote:
Is there any alternative method in MongoDB for date_sub in mySql?