日期问题 [英] Date problem

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

问题描述

您好


任何人都可以帮忙。


我要求用户在JavaScript日历上选择日期。根据用户选择的

日期,系统必须确定用户选择的YEAR和

WEEKNUMBER。有人有现成品吗?这可以吗?
这样做吗?


谢谢


Jozua

Hi

Can anybody please help.

I require a user to select a date on a JavaScript calendar. Based on the
date selected by the user the system must determine which YEAR and
WEEKNUMBER the user has selected. Does anybody have a "readymade" that can
do this?

Thanks

Jozua

推荐答案

JRS:文章< 3f ************ @ hades.is.co.za> ;,见于

news :comp.lang.javascript,Jozua< hu *** @ icon.co.za>发表于7月1日星期二

2003 09:26:54: -
JRS: In article <3f************@hades.is.co.za>, seen in
news:comp.lang.javascript, Jozua <hu***@icon.co.za> posted at Tue, 1 Jul
2003 09:26:54 :-

我要求用户在JavaScript日历上选择日期。根据用户选择的日期,系统必须确定用户选择的YEAR和
WEEKNUMBER。有人有现成品吗?那可以吗?

I require a user to select a date on a JavaScript calendar. Based on the
date selected by the user the system must determine which YEAR and
WEEKNUMBER the user has selected. Does anybody have a "readymade" that can
do this?




虽然你没有明确说出来,但你似乎在南非;

我不太了解相关的SA定制。


首先,您必须确定周数是否符合

国际标准ISO 8601,或者看似无数的美国标准之一,或英国税务局的标准之一,或者在南非梦寐以求的b $ b,或者是什么。

计算ISO周数的例程也必须返回可能的

修改年份,并且还可以返回日期编号:Mon..Sun =

1..7。


在发布之前,可以阅读新闻组的常见问题解答。


阅读<网址:http://www.merlyn.demon.co.uk/weekinfo.htm>,

< URL:http://www.merlyn.demon.co.uk/js-date2的.htm#周> ff。


-

?约翰斯托克顿,英国萨里。 ?@merlyn.demon.co.uk Turnpike v4.00 IE 4?

< URL:http://jibbering.com/faq/> Jim Ley的新闻常见问题解答:comp.lang.javascript

< URL:http://www.merlyn.demon.co.uk/js-index.htm> JS数学,日期,来源。

< URL:http://www.merlyn.demon.co.uk/> TP / BP / Delphi / JS /& c。,FAQ主题,链接。



Although you do not explicitly say so, you appear to be in South Africa;
I don''t know much about relevant SA custom.

Firstly, you must determine whether the week number is to match the
international standard ISO 8601, or one of the seemingly numerous
American standards, or that of the UK Inland Revenue, or something
dreamt up in South Africa, or what.

A routine to calculate ISO week number must also return the possibly-
modified year, and might as well also return the day number : Mon..Sun =
1..7.

Before posting here, it is well to read the newsgroup''s FAQ.

Read <URL:http://www.merlyn.demon.co.uk/weekinfo.htm>,
<URL:http://www.merlyn.demon.co.uk/js-date2.htm#Weeks> ff.

--
? John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ?
<URL:http://jibbering.com/faq/> Jim Ley''s FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.


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

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