Soumya Ps

Soumya Ps

  • NA
  • 148
  • 17.5k

Need 1 year before

Apr 5 2018 11:41 PM
In my dropdown value i get the current year
 
ddlYear.Items.FindByValue(System.DateTime.Now.Year.ToString()).Selected = true;
 
but i want the dropdown shows 1 year back...that is now dropdown shows 2018.but i want to show it as 2017 how it possible? 

Answers (6)