Solved

how to get "Teusday" from  "30JUL02"

Posted on 2002-07-30
10
164 Views
Last Modified: 2010-05-01
I want the day of the week from  "30JUL02"
0
Comment
Question by:josmic
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 20

Expert Comment

by:hes
ID: 7188643
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
 

Expert Comment

by:joebenz
ID: 7188682
Convert it to 30/07/02 ,then call:

Dim mydate

mydate="30/07/02"
Format(MyDate,"Long Date")
0
 
LVL 5

Accepted Solution

by:
jayeshshah earned 50 total points
ID: 7188715
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
 

Expert Comment

by:joebenz
ID: 7188728
To jayeshshah:
Remember that the format is "30JUL02".
Cheers.
0
 

Author Comment

by:josmic
ID: 7189265
thanks but sorry input output wrong and and almost working answer b4 yours.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:josmic
ID: 7189268
hes 0 was month/day and 1 was year could not make work for day of week.
0
 

Author Comment

by:josmic
ID: 7189269
oops that was u thanks
0
 

Author Comment

by:josmic
ID: 7189270
oops that was u thanks
0
 
LVL 20

Expert Comment

by:hes
ID: 7189439
What ?
You accepted jayeshshah's wrong answer ?
0
 

Author Comment

by:josmic
ID: 7277590
WeekdayName was preffered hes, sorry.
Also your code like mine errs on some diff date setting other then north america.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now