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!
triphenAsked:
Who is Participating?
 
cyberkiwiCommented:
label1.caption = Format$(Now, "dddd")
label2.caption = Format$(Now, "yyyy-mm-dd hh:mm:ssAM/PM")
0
 
Brian GeeCommented:
label1.caption = Date$
label2.caption = Time$
0
 
triphenAuthor Commented:
I want the label1.caption to say Wednesday when I load the form today and Thursday when I load the form tomorrow.
0
 
cyberkiwiCommented:
"Now" gives you the current time, which given the formatting specifiers will produce the two captions you need.
0
 
triphenAuthor Commented:
Thanks dude!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.