This macro converts the date field passed as a parameter with an input format to another field with an output format.