如何在不使用系统日期和时间的情况下获取我所在地的当前日期时间.. [英] How Do I Get Current Date Time Of The Place I Am In Without Using System Date And Time..

查看:54
本文介绍了如何在不使用系统日期和时间的情况下获取我所在地的当前日期时间..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在我的网络应用程序中显示日期和时间,但是,为了避免错误的日期输入系统日期错误,不要从系统中获取日期时间..如何获取当前日期时间在c#??

I wanted a date and time to be displayed in my web application,, However, datetime is not to be taken from system in order to avoid wrong date entry in case system date is wrong.. how can i take an current date and time in c# ??

推荐答案

CodeProject是你的朋友:[ ^ ],[ ^ ]。
CodeProject is your friend: [^], [^].


If你不相信系统,那么你需要从互联网服务,如 http://www.ntp.org/ 获取它[ ^ ]。
If you don't trust the system then you need to get it from an internet service such as http://www.ntp.org/[^].


这篇关于如何在不使用系统日期和时间的情况下获取我所在地的当前日期时间..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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