Add date choose function.