Click here to Skip to main content
15,916,398 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi good morning to all

i want to deactive user login based on end date i,e let us suppose today is the last date for the user from tommarow onwards he wont be login.how to do this couls you please tell me anyone
Posted

1 solution

Yes u can. try it...

C#
if(DateTime.Now > new DateTime(2013, 1, 25)
{
      MessageBox.Show("Trial Period Expired !");
}
else
{
      // Check User Id & Password
}
 
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