SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In native SP list I have item with datetime field which shows 24.1.2010. 00:00:00. When I try get it with ClientContext, I got that item field with the time 23.1.2010. 23:00:00.

I understand that this is its internal time(on which he add +1 for my "time" (Croatia), but I can't find the good function/way to cast this field in the way that it shows me "24.1.2010. 00:00:00"

Sorry if question is stupid, but it piss me of because classic datetime casting/parsing won't do the job.


share|improve this question
up vote 4 down vote accepted

Answer is:

DateTime startDate = (DateTime.SpecifyKind(DateTime.Parse(item["this should be date field in SP list"].ToString()), DateTimeKind.Utc)).ToLocalTime();

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.