use NSDate in tasks