manivineet
asked on
find a string pattern and then extract date from it
if have a array of strings.
some of them look like:
test1
test2
but others look like
"2006-06 (jun)"
"2006-07 (jul)"
now i want to extract the date part from these strings (only the one's which contain the date, e.g. 2006-06) and convert (only the strings which look like they have date in them) them to a "date time" format and store them in another array as "date time" items
how do i do it?
how
some of them look like:
test1
test2
but others look like
"2006-06 (jun)"
"2006-07 (jul)"
now i want to extract the date part from these strings (only the one's which contain the date, e.g. 2006-06) and convert (only the strings which look like they have date in them) them to a "date time" format and store them in another array as "date time" items
how do i do it?
how
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this should work.
Other solution is to use regex to extract the date but i'm not too familiar with it
so... ;)
-Avelan
Open in new window