Current day + Expiry Day in asp.net insert to Datatable

Jan 27 2016 5:14 PM
Hello C# Corner ,
I created a method to count days before expires
private string checkDate(int days)
{
string response = null;
if (days == 30)
{
response = "30 Days-SE";
}
else if (days == 90)
{
response = "90 Days-SE";
}
else if (days == 365)
{
response = "365 days-SE";
}
else if (days ==31)
{
response = "30 Days-PE";
}
else if (days==91)
{
response = "90 Days-PE";
}
else if (days==366)
{
response = "365 Days-PE";
}
return response;
}
 
Question one = I want to get future expiry dates after you add ( Date time.now + expiry date)
 
Please, Can someone help me how to do this. Thanks 
 

Answers (1)