int diff = userdate.Day - DateTime.Now.Day;//this is the difference in days if you want another difference //ex in mon monthes use userdate.Month and so on if (diff > 7) { // Do something linkbutton.Visible = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)