jschill2628
Programmer
Hi I am trying to convert Military time to Standard time, from a previous post I have had help and have come up with the following
Numbervar T := ToNumber({IRSCLAIM.MISC4_DESC});
T := if isnull({IRSCLAIM.MISC4_DESC})
then 0 else T;
stringvar n := totext(T,'0000');
numbervar Hs := ToNumber(left(n,2));
numbervar Ms := toNumber(right(n,2));
time(hs,ms,0)
my problem is that when running the rreport, it shoots back with an error message
"Hour must be between 0 and 23"
I am using Crystal Reports XI Release 2
Numbervar T := ToNumber({IRSCLAIM.MISC4_DESC});
T := if isnull({IRSCLAIM.MISC4_DESC})
then 0 else T;
stringvar n := totext(T,'0000');
numbervar Hs := ToNumber(left(n,2));
numbervar Ms := toNumber(right(n,2));
time(hs,ms,0)
my problem is that when running the rreport, it shoots back with an error message
"Hour must be between 0 and 23"
I am using Crystal Reports XI Release 2