Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the week number ?

Status
Not open for further replies.

IG3Rosen

IS-IT--Management
Jan 5, 2005
40
FR
Hi,

Is their a way to get the week number?

Thanks
 
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.
 
Interesting, I wouldn't have thought that my code depended on the day of week. I'll have to look into that.

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top