Click here to Skip to main content
16,012,168 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone

how can we retrive only sundays according to system time in asp

thanks in advance
Posted
Comments
CHill60 3-May-13 9:28am    
It is not clear what your problem is. Retrieve only sundays from where and into what? Do you mean "how to tell if a System.DateTime value is a sunday?"

1 solution

C#
DateTime myDateTime = DateTime.Now;  
string day = myDateTime.Day.ToString();  

now you can check if day is sunday or not..
 
Share this answer
 
v2

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