i have a problem, i have a DateTimeOffset and a DateTime, and i want to know how to add the Offset to the DateTime?
DateTimeOffset e.g. is +02:00
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Documentation: http://msdn.microsoft.com/en-us/library/system.datetimeoffset.aspx
says that DateTimeOffset already contains both a DateTime and an offset.
You probably want to use a TimeSpan instead of a DateTimeOffset. TimeSpan’s can be added to DateTimes.