Date conversion, PLEASE HELP

S

shawn

I am importing data from an OBDC datasource. One of the
fields is a date field that imports in this
format "20040818", as a number. I am trying to convert
this value to a date format and have had no luck. If
anyone can provide assistance, I am grateful...
 
K

Ken Snell [MVP]

MyDate = DateSerial(Left([ImportedDate], 4), Mid([ImportedDate], 5, 2),
Right([ImportedDate], 2))
 
G

Guest

MANY,MANY THANKS!! Works perfectly.

-----Original Message-----
MyDate = DateSerial(Left([ImportedDate], 4), Mid ([ImportedDate], 5, 2),
Right([ImportedDate], 2))


--

Ken Snell
<MS ACCESS MVP>

shawn said:
I am importing data from an OBDC datasource. One of the
fields is a date field that imports in this
format "20040818", as a number. I am trying to convert
this value to a date format and have had no luck. If
anyone can provide assistance, I am grateful...


.
 
K

Ken Snell [MVP]

You're welcome.

--

Ken Snell
<MS ACCESS MVP>

MANY,MANY THANKS!! Works perfectly.

-----Original Message-----
MyDate = DateSerial(Left([ImportedDate], 4), Mid ([ImportedDate], 5, 2),
Right([ImportedDate], 2))


--

Ken Snell
<MS ACCESS MVP>

shawn said:
I am importing data from an OBDC datasource. One of the
fields is a date field that imports in this
format "20040818", as a number. I am trying to convert
this value to a date format and have had no luck. If
anyone can provide assistance, I am grateful...


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top