Quantcast
Viewing all articles
Browse latest Browse all 10096

Date issue with UTC/localtime

Hi!

I am developing a client that connects to my SharePoint online  and retrieves data from a list containing text end date values and sves that to a local XML file.
But the date is wrong, im my list i have 13:00 but when i get the date from the list it´s 01:00 next day...

i have tryed this:

DateTime dtTo = Convert.ToDateTime(oListItem["MyDate"].ToString());
DateTime dtTo = tdtTo.ToLocalTime();

but the date is still incorrect. Any solutions?


Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>