Hazel Mahmud

Hazel Mahmud

  • 1.4k
  • 315
  • 70k

hide image in 3 days

Sep 7 2016 12:24 AM
hello,
 
how do i do to hide image in 3 days. I use start date using Datetime.Now. e.g: my start date is 6/9/2016, after 3 days starts from 6/9/2016 an image will hide.Meaning that at 10/9/2016 the image must hide. below are my example code that did not have any condition to hide yet:
 
DateTime dt1 = DateTime.Now;

string datetoday = dt1.ToString();

lblDateToday.Text = datetoday;

DateTime AddDay = DateTime.Now.AddDays(3);

lblDateAdd2.Text = AddDay.ToString(); 
 
 Please help anyone...

Answers (4)