Link to home
Start Free TrialLog in
Avatar of triphen
triphen

asked on

VB6 Get day of the week

Hey Experts,

I want to make...

label1.caption = to the day of the week.
label2.caption = full date and time

So when I load the form...

label1.caption says "Wednesday"
label2.caption says "2011-03-31 20:39:00PM"

Thanx!
Avatar of yobri
yobri
Flag of United States of America image

label1.caption = Date$
label2.caption = Time$
ASKER CERTIFIED SOLUTION
Avatar of cyberkiwi
cyberkiwi
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of triphen
triphen

ASKER

I want the label1.caption to say Wednesday when I load the form today and Thursday when I load the form tomorrow.
"Now" gives you the current time, which given the formatting specifiers will produce the two captions you need.
Avatar of triphen

ASKER

Thanks dude!