Times and dates are the same format whether you are starting or ending. Copy the begin datetime shared parameter assignment above and replace the word 'begin' with end.