convert short text to date value

I am querying a linked table in MS Access and the field values are all text.  I want to do a calculation to determine the time difference between now() and opened_at.  The opened_at field has a value of 01-26-15 3:15 PM EST in text format.  How can i convert this to date so the calculation can be made?
szadrogaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
you can convert the text field with

cdate(replace([opened_at]," EST",""))

to get the time difference, you will need a function in vba to return difference in days, hours, minutes, seconds

see this link

http://support.microsoft.com/en-us/kb/210604

look for  GetElapsedTime()
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
szadrogaAuthor Commented:
when I try to use cdate(opened_at) or cdate([opened_at]) i get an error message in the results. #Error
0
PatHartmanCommented:
Look again at Rey's suggestion. You have to get rid of the "EST" part of the string in order to have something Access will recognize as a valid date/time value.
0
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Gustav BrockCIOCommented:
If you have other timezones than EST, a generic expression may be useful:

DateOpenedAt: CDate(Mid([opened_at],1,17))

To convert between timezones, a full collection of functions can be found here:
http://www.experts-exchange.com/Database/MS_Access/Q_27809329.html#a38237658

/gustav
0
szadrogaAuthor Commented:
my mistake, that was it.  thx for catching that
0
Gustav BrockCIOCommented:
You are welcome!

/gustav
0
szadrogaAuthor Commented:
i meant to split the points assignment.  can this be done now?
0
Gustav BrockCIOCommented:
Yes. Call for attention.

/gustav
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.