Hi,
You can use the following code to know whether the user's account has expired or not?
DateTime createddate = Convert.ToDateTime(createddate);
DateTime currenctdate = DateTime.Now;
TimeSpan t = currenctdate.Subtract(createddate);
int numberofdays = Convert.ToInt32(t.TotalDays);
if (numberofdays <= howmanydays(month store at days))
{
}