Supporting AddToDate system function.