weekday in c#

weekday in c#? how do i do it?

thanks
LVL 1
alain123Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
malharoneConnect With a Mentor Commented:
System.Windows.Forms.MessageBox.Show(System.DateTime.Now.ToString("dddd"));


use dddd for dates "Monday"..
use ddd for "Mon"
0
 
Timbo87Commented:
You could also use DateTime.Now.DayOfWeek
This will return "Monday"
0
 
alain123Author Commented:
Thank you!

alain
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.