UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Convert Text Date To Long Date Format, Office 2010    
 
   
cronk005
post Oct 3 2011, 09:09 AM
Post #1

UtterAccess Addict
Posts: 106
From: Saint Paul, Minnesota, USA



Hi There-

I tried a couple of examples in the forum but couldn't figure it out.

I have a medical imaging device that exports date in text format as YYYYMMDD and I need to convert it into the Long Date to give me day of the week, etc.

I tried using CDate(), no luck.

My field is Exam Date .. Do we have any thoughts on things I can try?

Regards,

Daniel
Go to the top of the page
 
+
GroverParkGeorge
post Oct 3 2011, 09:12 AM
Post #2

UA Admin
Posts: 19,210
From: Newcastle, WA



This is a case where you'll have to parse out the elements of the string before you can convert it to a date.

DateSerial(Left([Exam Date],4), Mid([Exam Date],5,2), Right([Exam Date],2))

Then, you can display it as the long date format you need.
Go to the top of the page
 
+
cronk005
post Oct 3 2011, 10:13 AM
Post #3

UtterAccess Addict
Posts: 106
From: Saint Paul, Minnesota, USA



Awesome. That's exactly what I needed. Thanks so much for your response.

Regards,

Daniel
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 18th May 2013 - 04:48 AM

Tag cloud: