Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula to Get Day of Week....

Status
Not open for further replies.

stlrain95

Programmer
Sep 21, 2001
224
US
I am currently using a VB form to insert data into an excel spreadsheet. I would like to take the date/time and find the day of the week. Once I have that day of the week, put the data into the day tab.

I am sure this can be done...but perhaps not hair pulling.

thank you,
 

Hi:

You might be looking for the
Code:
Weekday(date, [firstdayofweek])
function.

Cassie
 
Use the ubiquitous {F1} (aka "Help) for the the term "Weekday" &/or search these fora for the same term.

MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
IMO, rather use Weekday() function than using the Format(Date, "w") function.

There is also a WeekDayname() function which can be used as:
WeekDayname(Weekday(Date, True))

instead of Format(Date, "ddd")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top