date extraction

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a value in a tbl -

2006022410503300

how do i convert this to a day of the week ?
 
try

Format(DateSerial(Left("2006022410503300", 4), Mid("2006022410503300", 5,
2), Mid("2006022410503300", 7, 2)), "dddd")

hth
 
There's probably a cleaner solution plus I made some assumption on the data.

Format(CDate(Left("2006022410503300",4)& "/" & Mid("2006022410503300",5,2)&
"/" & Mid("2006022410503300",7,2)),"DDDD")
 

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

Back
Top