获取打开网站的日期 [英] Getting Date of Place where Web site is Opened

查看:95
本文介绍了获取打开网站的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个网站上工作,该网站要求从当前打开网站的日期中选择日期.因为我是新来的,所以我不知道如何约会.


在此先感谢

问候

Rohit

I am working on a web site that required the date to be picked from the place where the site is currently opened. as i am new in this so i have no idea how to get date.


Thanks in advance

Regards

Rohit

推荐答案

JavaScript在客户端计算机上运行,​​因此它将返回用户计算机上的日期/时间.在此处查看更多信息: http://www.webdevelopersnotes.com/tips/html/getting_current_time_using_javascript.php3

如果需要将该值返回给服务器,则始终可以使用一些AJAX来首先获取该值,然后将其发送回服务器,然后根据服务器对日期的处理,在页面上显示一些内容.
JavaScript runs on the client computer, so it will return the date/time on the user''s computer. See more here: http://www.webdevelopersnotes.com/tips/html/getting_current_time_using_javascript.php3

If you need to return that value to the server, you can always use a little AJAX to first get the value then send it back to the server then subsequently display something to the page based on some server processing of the date.


这篇关于获取打开网站的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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