我需要在文本框或标签中更正日期和时间 [英] I need Correct Date and Time in Textbox or label

查看:61
本文介绍了我需要在文本框或标签中更正日期和时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我需要在标签或文本框中输入正确的日期和时间,我的项目无需系统日期和时间。如何在没有系统日期的情况下获取日期和时间它可能..







感谢和问候,

Vivek。 R

Dear Friends,

I need correct date and time in label or textbox, i no need system date and time for my project. how to take date and time without system date. it possible..



Thanks & regards,
Vivek .R

推荐答案

从计算机获得的任何日期或时间都是相同的 - 它们都使用一个时钟源。并且许多(如果不是大多数)PC被设置为定期与互联网时间源同步,因此任何时候从不同的设备获得的信息很可能(在几毫秒内)与您从PC系统。



但是,您可以使用互联网时间源获取当前的UTC时间:白天,互联网时间服务类 [ ^ ]应该有所帮助。
Any date or time you get from your computer will be the same - they all use the one clock source. And many (if not most) PC's are set up to regularly synchronise themselves with an internet time source, so any time you get from a different device is very likely to be the same (within a few milliseconds) as the one you get from the PC system.

However, you can use internet time sources to get the current UTC time: Daytime, Internet Time Service Class[^] should help.


这篇关于我需要在文本框或标签中更正日期和时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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