Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I want to check the date time in such a way that if the leave selected is vacation or Casual leave I can enable the person to apply leave from current date and future date,For instance if he is applying for casual leave he can apply from today to future dates whereas he is not allowed to take casual leave in the previous days
Posted

1 solution

Have you researched the DateTime Structure[^] on MSDN?

You can use it's .CompareTo[^] method to find out if a date occurred before or after another date.
 
Share this answer
 

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