本地时间转换为UTC在.NET框架3.0 [英] Convert local time to UTC in .NET framework 3.0
本文介绍了本地时间转换为UTC在.NET框架3.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开发的应用程序。在C#中,我要转换本地时间UTC,当地时间是时区谁在我的应用程序使用。进入。我必须在.NET Framework 3.0中使用,因此不能使用的TimeZoneInfo对象。
I develop an app. in c#, I should translate local time to UTC, the local time is in time zone that who that use in my app. enters. I must use in .NET framework 3.0, so can't use the TimeZoneInfo object.
有没有人有一个IDIA我该怎么办呢?
Does anyone has an idia how can I do it?
如果在TimeZone对象使用?
Should use in TimeZone Object?
感谢
也许我不能这样做呢?
推荐答案
现在我看到的问题。使用下面的方法代替: TimeZone.ToUniversalTime
Now I see the problem. Use the following method instead: TimeZone.ToUniversalTime
这篇关于本地时间转换为UTC在.NET框架3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文