I need to isolate the date and time from a string that is quite varied. I would like to place the date and time in 2 separate columns. The recipient of this report would like to sort data based on these 2 columns (fields).
The problem is that this string (let's call it CRITICAL CALLS) consists of a combination of coded entry and free text entry. The format is highly varied. For example:
CLRB-;MARY RN, CCU ON 7/20/09 9:30 AM JD.
CLRB-;AGATHA RN TELE UNIT 072009@0930 AS
REP-CLRB-;DR SMITH 7.20.09 930AM DJ
CLRB-; TO MARY RN BY DJ @ 930AM 7/20/09.
As you can see, there is no consistency in order or delimiters. I need to pull out elements that look like numbers within the string and then convert them to Date and Time.
Any suggestions on how to go about this? I would greatly appreciate any help!
TIA
The problem is that this string (let's call it CRITICAL CALLS) consists of a combination of coded entry and free text entry. The format is highly varied. For example:
CLRB-;MARY RN, CCU ON 7/20/09 9:30 AM JD.
CLRB-;AGATHA RN TELE UNIT 072009@0930 AS
REP-CLRB-;DR SMITH 7.20.09 930AM DJ
CLRB-; TO MARY RN BY DJ @ 930AM 7/20/09.
As you can see, there is no consistency in order or delimiters. I need to pull out elements that look like numbers within the string and then convert them to Date and Time.
Any suggestions on how to go about this? I would greatly appreciate any help!
TIA