Hi all,
I am facing the unpleasant situation to having to pass parameters from the calling program to procedures in two service programs--one datfmt(*iso) the other datfmt(*eur).
Passing date parameters to the procedures will fail in one or the other service program if the caller’s datfmt doesn’t match the service program’s.
I’m afraid, the best practice would be to have the same date format everywhere, but I did miss that in the past and I am not able to change the service programs now. Until today, I thought was it was okay to mix formats if they are both 10-digits, so the compiler would do the conversion. Seems like I was wrong or I don’t draw the right conclusions from that.
So, what is the best way to call procedures with date parameters that differ from the caller’s date format?
Thanks
Markus
I am facing the unpleasant situation to having to pass parameters from the calling program to procedures in two service programs--one datfmt(*iso) the other datfmt(*eur).
Passing date parameters to the procedures will fail in one or the other service program if the caller’s datfmt doesn’t match the service program’s.
I’m afraid, the best practice would be to have the same date format everywhere, but I did miss that in the past and I am not able to change the service programs now. Until today, I thought was it was okay to mix formats if they are both 10-digits, so the compiler would do the conversion. Seems like I was wrong or I don’t draw the right conclusions from that.
So, what is the best way to call procedures with date parameters that differ from the caller’s date format?
Thanks
Markus
Comment