简体   繁体   English

如何以日期格式设置当前计算机的区域?

[英]how can i set the zone of current Machine in date format?

i'm working at VB.net project, what i want is to change the zone "GMT" in a date to send it to another application. 我正在VB.net项目中工作,我想要在日期中更改区域“ GMT”以将其发送到另一个应用程序。 so that when a destination get this date it can find the zone. 这样,当目的地获得该日期时,便可以找到该区域。 so i want to modify a zone of date to any zone i want 所以我想将日期区域修改为我想要的任何区域

Look here for converting timezones. 在此处查找时区转换。 However it is in C# but it is straightforward to convert it to VB.Net: http://blogs.msdn.com/b/bclteam/archive/2006/10/03/system.timezone2-starter-guide-_5b00_kathy-kam_5d00_.aspx 但是,它在C#中,但是将其转换为VB.Net很简单: http : //blogs.msdn.com/b/bclteam/archive/2006/10/03/system.timezone2-starter-guide-_5b00_kathy-kam_5d00_ .aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM