Quote:
Tried to convert date to string and subtract -5 to the end date and messagebox me when the date is reaching.
Don't do that! Instead, keep it as a DateTime value:
private bool IsWithinDays(DateTime date, int numberOfDays)
{
return DateTime.Now.Date.AddDays(numberOfDays) >= date;
}