bzzyplayin
Programmer
I am using CR 8.5 and am connecting to an AS/400. The date and time formats are numeric (stored in separate fields).
I need to convert AS/400 numeric dates into a Crystal date format. Date records are stored as yymmdd, however since the field is numeric, the leading zero for the year is dropped off.
i.e.
21231 = year 2, month 12, day 31
30105 = year 3, month 1, day 5
Any ideas on how to add the leading zero (to the year) and convert it to a date format?
I also need to convert AS400 numeric time fields into a time format. Time records are stored in military time (in a numeric field).
i.e.
600 = 6:00 am
700 = 7:00 am
1000 = 10:00 am
1100 = 11:00 am
2200 = 10:00 pm
2300 = 11:00 pm
2400 = 12:00 pm
Any ideas on how to convert the records into a time format?
Thanks, in advance!
Kim
I need to convert AS/400 numeric dates into a Crystal date format. Date records are stored as yymmdd, however since the field is numeric, the leading zero for the year is dropped off.
i.e.
21231 = year 2, month 12, day 31
30105 = year 3, month 1, day 5
Any ideas on how to add the leading zero (to the year) and convert it to a date format?
I also need to convert AS400 numeric time fields into a time format. Time records are stored in military time (in a numeric field).
i.e.
600 = 6:00 am
700 = 7:00 am
1000 = 10:00 am
1100 = 11:00 am
2200 = 10:00 pm
2300 = 11:00 pm
2400 = 12:00 pm
Any ideas on how to convert the records into a time format?
Thanks, in advance!
Kim