Click here to Skip to main content
15,922,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i make student attendance page in which i marking student attendance by selecting the date form
calendar i want if user select bydefault date of sunday form calendar then one alert message show
that today is sunday how we can do
Posted
Comments
Krunal Rohit 17-Feb-14 23:52pm    
What have you tried so far ?
Member 10426233 17-Feb-14 23:56pm    
my question is if user selecting date of sunday by default attendance should not be mark
Sergey Alexandrovich Kryukov 18-Feb-14 0:14am    
You never ask any questions, even in the statement "my question is..."; that's amazing.
—SA

1 solution

I think you are looking for DayOfWeek[^]Property of DateTime class.

If you find any difficulty then let me know.
 
Share this answer
 
v2
Comments
Member 10426233 18-Feb-14 0:40am    
sir my question is if user select by default date of sunday from calendar and try to make attendance then attendance should not be marked one alert message disply on page 'sunday'
means user mark the attendance of all days excluding sunday
CodeReady 18-Feb-14 0:44am    
Thats simple, you just have to check whether the date on which attendance will going to marked is sunday not. So check the day by using DayOfWeek property and if it is sunday then generate a alert message.

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