Click here to Skip to main content
15,896,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to display day of the week according to date in db table in asp.net gridview control. How can i do that?
Posted
Comments
[no name] 1-Sep-14 6:17am    
Which part of this are you having trouble with?

Try:
SQL
SELECT DATENAME(dw, MyDateColumn) AS WeekDay FROM MyTable
 
Share this answer
 
Use
C#
DateTime.Now.ToString("ddd")
 
Share this answer
 
Comments
Gihan Liyanage 15-Sep-14 6:24am    
Did you got a solution from my support, I can see you have not accepted any answer.If you are ok with this answer plz accept it. Then any user having same problem can identified it has solved the problem..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900