Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Day name?

I have to find the Name of a particular DATE (like Sunday, Monday etc.) in past.
Suppose I have to find Day Name on
2000-1-1
How can I find that ?

like image 853
Macho Avatar asked May 20 '11 10:05

Macho


People also ask

How do I calculate my day name?

dd – shows the day value from the date in two digits. If the day value is less than 10, a leading zero is added to the number. For example, 5 would become 05. ddd – this will show you the day name in the short format.

How do I get the day name in Excel?

Under Category, click Custom, and in the Type box, type dddd for the full name of the day of the week (Monday, Tuesday, and so on), or ddd for the abbreviated name of the day of the week (Mon, Tue, Wed, and so on).

How do you find the day of the week for any date in Excel?

To start, first, open your spreadsheet with Microsoft Excel. In the spreadsheet, make sure you have at least one date. Then select the cell in which you want to display the day of the week. In the selected cell, type the following WEEKDAY function and press Enter.


1 Answers

You can use DATENAME function of SQL Server, like this

SELECT DATENAME(dw,'2000-1-1')
like image 71
jams Avatar answered Oct 05 '22 16:10

jams