I am attempting to extract a date from a string. The date is enclosed in parenthesis. I tried to accomplish this by using the Mid function with ASCII values (chr(40) and chr(41)) representing parenthesis(see below).
STRING: (03/25/05)Perishable Goods
FORMULA: Mid ({Inputstring}, chr(40),chr(41))
This produces an error message stating that a number is required for the start(chr(40)) and the length (chr(41)).
The date can take various formats((03/25/05) or (March 25, 2005)or (3/25/2005)etc.), but is always contained within parenthesis.
Do you have any suggestion on extracting a date from a string?
Any assistance is greatly appreciated.
STRING: (03/25/05)Perishable Goods
FORMULA: Mid ({Inputstring}, chr(40),chr(41))
This produces an error message stating that a number is required for the start(chr(40)) and the length (chr(41)).
The date can take various formats((03/25/05) or (March 25, 2005)or (3/25/2005)etc.), but is always contained within parenthesis.
Do you have any suggestion on extracting a date from a string?
Any assistance is greatly appreciated.