Show Todays Date As Day Name? (1 Viewer)

Number11

Member
Local time
Today, 12:17
Joined
Jan 29, 2020
Messages
607
Hi,
So i need to show within a form todays date as the day name and then a second box to show yesterdays day and the another box to show week commencing date. any ideas
 

Gasman

Enthusiastic Amateur
Local time
Today, 12:17
Joined
Sep 21, 2011
Messages
14,234
A quick google shows the function WeekdayName() to get the names.
Then use WeekDay() function and math to determine the rest?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 19:17
Joined
May 7, 2009
Messages
19,233
you can also use =Format$(Date(), "dddd") as today's dayname and
=Format$(Date()-1, "dddd") as yesterday.

to show the start of week (change vbSunday to whaterver day (integer) you want to start the week):

=date()-weekday(date(),vbSunday)+1
 

isladogs

MVP / VIP
Local time
Today, 12:17
Joined
Jan 14, 2017
Messages
18,209
If you want the full date as well as the day name, use e.g. Format(Date(),"dddd dd/mm/yyyy") substituting your preferred date format

?Format(Date(),"dddd dd/mm/yyyy")
Thursday 25/11/2021
 

Users who are viewing this thread

Top Bottom