Hello everybody i have asp.net mvc4 application where i made countdown something like this:
How i can get how many days, hours, minutes and seconds are remaining with two daetime range
i have tried this does not working on minutes .TotalMinutes
datetime.TotalDays();

Use
Then:
Use
remtime.Daysfor DaysUse
remtime.Hoursfor HoursUse
remtime.Minutesfor MinutesUse
remtime.Secondsfor SecondsDo not use any
Total...property as it converts all time into that entity.You are using
remtime.TotalMinutes. This will convert your Time into Minutes.For eg. if 3 Hours are left this will return 180 Minutes (bcoz 3 * 60 = 180)