begin datetime is passed from the first place.