added markAs() function to mark dates as pending or resolved