fixed date handling to use mongos built in stuff