Aug 1, 2005 #1 IG3Rosen IS-IT--Management Jan 5, 2005 40 FR Hi, Is their a way to get the week number? Thanks
Aug 1, 2005 #2 pmonett Programmer Sep 5, 2002 2,632 FR Get the date in seconds : seconds := @now - @date(@year(@today);1;1) Then transform into days : days := seconds / 86400 then into weeks : weeks := @integer(days / 7) Pascal. Upvote 0 Downvote
Get the date in seconds : seconds := @now - @date(@year(@today);1;1) Then transform into days : days := seconds / 86400 then into weeks : weeks := @integer(days / 7) Pascal.
Aug 3, 2005 Thread starter #3 IG3Rosen IS-IT--Management Jan 5, 2005 40 FR Thanks ! But If the first day of the year doesn't begin a monday the result isn't good. I found some things about this here : http://www.keysolutions.com/NotesFAQ/howweek.html Upvote 0 Downvote
Thanks ! But If the first day of the year doesn't begin a monday the result isn't good. I found some things about this here : http://www.keysolutions.com/NotesFAQ/howweek.html
Aug 3, 2005 #4 pmonett Programmer Sep 5, 2002 2,632 FR Interesting, I wouldn't have thought that my code depended on the day of week. I'll have to look into that. Pascal. Upvote 0 Downvote
Interesting, I wouldn't have thought that my code depended on the day of week. I'll have to look into that. Pascal.