0
Answer

Need help with a count down timer

Ask a question
Mike Sanders

Mike Sanders

15y
2.6k
1

I already wrote the code to count down from the day of my wedding. This is wat it reads when page is executed

eg(131 days befor emy wedding).

Here is my code

DateTime d = Convert.ToDateTime("09/28/2009");

if (d > DateTime.Now)

{

TimeSpan ts = d - DateTime.Now;

int daysDiff = ts.Days;

string remainingDays = daysDiff.ToString();

DaysRemLabel.Text = (remainingDays + " Days to go before our Wedding!");

}

Would like it to cout down the Days , Hrs, Mins, Secs counting.