Process Date Function