如何更改任何操作系统的系统日期 [英] How to change System's Date of any OS

查看:53
本文介绍了如何更改任何操作系统的系统日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用c#代码更改系统的日期(仅日期).
它应该更改任何操作系统的时钟日期值.

I need to change system''s date (only date) using c# code.
It should change clock''s date value of any operating system

推荐答案

这个问题是此处所述, .net/default.aspx/kernel32/SetLocalTime.html"target =" _ blank"title =" New Window> ^ ],这有其自身的缺点.
This question was asked here before[^].
You might be interested in some of the answers.

Pinvoke can be used, but as discussed here[^], this has its own shortcomings.


此处你走.但是对于任何操作系统,不可以.
> http://stackoverflow.com/questions/650849/how-to-change-system-以编程方式进行日期 [ ^ ]
Here you go. But for any OS, no, you can''t.
http://stackoverflow.com/questions/650849/how-to-change-system-date-programatically[^]


这篇关于如何更改任何操作系统的系统日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆