Solved

weekday in c#

Posted on 2004-04-19
3
3,695 Views
Last Modified: 2008-01-16
weekday in c#? how do i do it?

thanks
0
Comment
Question by:alain123
3 Comments
 
LVL 9

Accepted Solution

by:
malharone earned 250 total points
ID: 10864233
System.Windows.Forms.MessageBox.Show(System.DateTime.Now.ToString("dddd"));


use dddd for dates "Monday"..
use ddd for "Mon"
0
 
LVL 15

Expert Comment

by:Timbo87
ID: 10864701
You could also use DateTime.Now.DayOfWeek
This will return "Monday"
0
 
LVL 1

Author Comment

by:alain123
ID: 10903371
Thank you!

alain
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error in script 11 58
Entity Framework 7 43
What can cause the styling on a .NET site to not be found? 17 26
.NET 2008 VB and C# 6 28
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question