how to get "Teusday" from "30JUL02"

I want the day of the week from  "30JUL02"
josmicAsked:
Who is Participating?
 
jayeshshahCommented:
use the below

WeekdayName(Weekday(Now), True)

here instead of now you can change the date whose day u r needing.

n'joy

Jayesh
0
 
hesCommented:
Try this:

Dim Temp As String
Dim MyDate As Date
Dim CurDay() As String
Temp = "30JUL02"
MyDate = Left(Temp, 2) & "-" & Mid(Temp, 3, 3) & "-" & Right(Temp, 2)
Temp = FormatDateTime(MyDate, vbLongDate)
CurDay = Split(Temp, ",")
MsgBox CurDay(0)
0
 
joebenzCommented:
Convert it to 30/07/02 ,then call:

Dim mydate

mydate="30/07/02"
Format(MyDate,"Long Date")
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
joebenzCommented:
To jayeshshah:
Remember that the format is "30JUL02".
Cheers.
0
 
josmicAuthor Commented:
thanks but sorry input output wrong and and almost working answer b4 yours.
0
 
josmicAuthor Commented:
hes 0 was month/day and 1 was year could not make work for day of week.
0
 
josmicAuthor Commented:
oops that was u thanks
0
 
josmicAuthor Commented:
oops that was u thanks
0
 
hesCommented:
What ?
You accepted jayeshshah's wrong answer ?
0
 
josmicAuthor Commented:
WeekdayName was preffered hes, sorry.
Also your code like mine errs on some diff date setting other then north america.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.