josmic
asked on
how to get "Teusday" from "30JUL02"
I want the day of the week from "30JUL02"
Convert it to 30/07/02 ,then call:
Dim mydate
mydate="30/07/02"
Format(MyDate,"Long Date")
Dim mydate
mydate="30/07/02"
Format(MyDate,"Long Date")
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To jayeshshah:
Remember that the format is "30JUL02".
Cheers.
Remember that the format is "30JUL02".
Cheers.
ASKER
thanks but sorry input output wrong and and almost working answer b4 yours.
ASKER
hes 0 was month/day and 1 was year could not make work for day of week.
ASKER
oops that was u thanks
ASKER
oops that was u thanks
What ?
You accepted jayeshshah's wrong answer ?
You accepted jayeshshah's wrong answer ?
ASKER
WeekdayName was preffered hes, sorry.
Also your code like mine errs on some diff date setting other then north america.
Also your code like mine errs on some diff date setting other then north america.
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)