Generate the pure date adjust() function based on the CustomDateOption.