General programming

Moderators: None (Apply to moderate this forum)
Number of threads: 1637
Number of posts: 2784

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
dateformular Posted by Glenn on 16 Oct 2000 at 12:30 AM
i need to know an algoritm that can convert a date into a weeknumber and viceverca. I would also like to know if there is a specific date of the year that would always be in week 53 if this weeknumber exists in a specific year


Edit Report
Re: dateformular Posted by Cander on 18 Oct 2000 at 11:09 AM
Well I dont know what language you want to do this in. But with VB / VBScript you can use<br>
<br>
MsgBox DatePart("ww", Now())<br>
<br>
That will return the week number for todays dats<br>
<br>
<br>
As far as your other question about a specific date in week 53..I have no idea.<br>
<br>
: i need to know an algoritm that can convert a date into a weeknumber and viceverca. I would also like to know if there is a specific date of the year that would always be in week 53 if this weeknumber exists in a specific year<br>
: <br>
<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.