Topic: 关于日期的计算

  Print this page

1.关于日期的计算 Copy to clipboard
Posted by: wan212
Posted on: 2005-04-10 16:03

已知1981年1月1号是星期1,如何计算2003年5月2号是星期几,我刚学,请大虾帮忙!先谢谢了

2.Re:关于日期的计算 [Re: wan212] Copy to clipboard
Posted by: why
Posted on: 2005-04-10 21:45

It is as easy as counting the number of days between 1981.01.01 and 2003.05.02

Well, if this question is Java related, then ...
check java.util.Calendar's get(int) and DAY_OF_WEEK
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html#get(int)


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923