Convert UTC/GMT time to local time

前端 未结 11 1008
情深已故
情深已故 2020-11-22 04:39

We are developing a C# application for a web-service client. This will run on Windows XP PC\'s.

One of the fields returned by the web service is a DateTime field. Th

11条回答
  •  臣服心动
    2020-11-22 05:14

    I had the problem with it being in a data set being pushed across the wire (webservice to client) that it would automatically change because the DataColumn's DateType field was set to local. Make sure you check what the DateType is if your pushing DataSets across.

    If you don't want it to change, set it to Unspecified

提交回复
热议问题