CR11
Oracle DB
Desired Result: Extract date from a system generated non numeric string to use in report's record selection.
Fields: Call_No (string)
Incident_Date (DateTime)
I have unique system generated non-numeric string which references a call/incident. The string looks like this: 093270694. The first two digits are the year, the next three are the day of the year (in this case Nov 23) and the last four digits are a unique call number for that day).
The first thing I would like to do is write a formula to convert the first five digits into a date. I'm having some trouble with the day of year part.
I use a parameter for the call number in the report's record selection editor. I also use a parameter for the date which I want to eliminate. The reason I enter the date is for speed (millions of call numbers over several years). By limiting it to the exact date, the report returns the record immediately.
The second step is to insert the date formula from the Call_No string into my selection record.
Oracle DB
Desired Result: Extract date from a system generated non numeric string to use in report's record selection.
Fields: Call_No (string)
Incident_Date (DateTime)
I have unique system generated non-numeric string which references a call/incident. The string looks like this: 093270694. The first two digits are the year, the next three are the day of the year (in this case Nov 23) and the last four digits are a unique call number for that day).
The first thing I would like to do is write a formula to convert the first five digits into a date. I'm having some trouble with the day of year part.
I use a parameter for the call number in the report's record selection editor. I also use a parameter for the date which I want to eliminate. The reason I enter the date is for speed (millions of call numbers over several years). By limiting it to the exact date, the report returns the record immediately.
The second step is to insert the date formula from the Call_No string into my selection record.