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