I would like to get the total number of days in a year left from the given date .. Assume if a user gives 04-01-2011(MM-DD-YYYY) I would like to find the remain
04-01-2011(MM-DD-YYYY)
Perhaps just:
DateTime.IsLeapYear(DateTime.Now.Year) ? 366 : 365
Sorry, read it as if you just wanted the number of days in current year...