weekday in c#

weekday in c#? how do i do it?

thanks
LVL 1
alain123Asked:
Who is Participating?
 
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
All Courses

From novice to tech pro — start learning today.