我想从服务器获取客户端日期和时间吗? [英] I want to get the client date and time from my server?

查看:88
本文介绍了我想从服务器获取客户端日期和时间吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,请原谅我拼写不好!
我想从服务器获取客户端日期和时间吗?
通过vb.net

hello excuse me for bad Spelling!
I want to get the client date and time from my server?
by vb.net

推荐答案

,您可以使用Java脚本来实现.获取客户端时间并重定向另一个页面,使用查询字符串来传递客户端时间.然后捕获它.
you can do it with java script. get client time and redirect another page use query string to pass client time. then capture it.


您好,

使用Now函数,它将为您返回系统日期

希望对您有所帮助.
hello,

use Now function , that will return you a system date

i hope this will help you.


您好,

DateTime dt = System.DateTime.Now;
它给您服务器日期时间,而您只想获取日期
比使用

DateTime.Now.days;
DateTime.Now.Date;
还可以使用DateTime.Now.DayOfWeek;
还有这么多的功能.....
hello,

DateTime dt= System.DateTime.Now;
it gives You Server Date Time and You want to get only Date
than use

DateTime.Now.days;
DateTime.Now.Date;
also use DateTime.Now.DayOfWeek;
And So many function.....


这篇关于我想从服务器获取客户端日期和时间吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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