Topic Options
#47343 - 09/23/15 10:17 AM GV 9.2A (140829) Week Number Function or Formula
MarlonMF Offline
Adagio Guru

Registered: 06/05/07
Posts: 126
Loc: Los Angeles, CA
(69.163.55.12)
Hello,

Does GridView have a function the get the week number of the date? Or is there a formula that I can use to get the week number of a date?

Marlon


Edited by MarlonMF (09/23/15 10:28 AM)

Top
#47345 - 09/23/15 10:40 AM Re: GV 9.2A (140829) Week Number Function or Formula [Re: MarlonMF]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
(207.35.234.226)
Hi Marlon,

The next Upgrade to GridView will have this function, but how do you define you weeks? Do they start on a Sunday or a Monday? Is Jan 1-7 week #1, regardless of the day of the week? (in which case you can use:
Code:
(TODAY()-BEGINYEAR()+1)/7
for the simple case.
_________________________
Andrew Bates

Top
#47347 - 09/23/15 10:42 AM Re: GV 9.2A (140829) Week Number Function or Formula [Re: Retired_Guy]
MarlonMF Offline
Adagio Guru

Registered: 06/05/07
Posts: 126
Loc: Los Angeles, CA
(69.163.55.12)
Hello Andrew,

Thanks for the information. We used Sunday as the start day of the week.

Marlon

Top
#47348 - 09/23/15 10:44 AM Re: GV 9.2A (140829) Week Number Function or Formula [Re: MarlonMF]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
(207.35.234.226)
So, if January 1 is a Wednesday, then Week #1 goes from Jan 1 to Jan 4? Or does it go from December 29 to January 4?
_________________________
Andrew Bates

Top
#47351 - 09/23/15 11:14 AM Re: GV 9.2A (140829) Week Number Function or Formula [Re: Retired_Guy]
MarlonMF Offline
Adagio Guru

Registered: 06/05/07
Posts: 126
Loc: Los Angeles, CA
(69.163.55.12)
On your example, Week #1 go from December 29 to January 4.

Marlon

Top
#47352 - 09/23/15 11:18 AM Re: GV 9.2A (140829) Week Number Function or Formula [Re: MarlonMF]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
(207.35.234.226)
You may have to wait for the Upgrade to calculate this properly.
_________________________
Andrew Bates

Top
#47353 - 09/23/15 11:26 AM Re: GV 9.2A (140829) Week Number Function or Formula [Re: Retired_Guy]
MarlonMF Offline
Adagio Guru

Registered: 06/05/07
Posts: 126
Loc: Los Angeles, CA
(69.163.55.12)
Thanks! I'll work with your formula and see what else I can do with it.

Marlon

Top


Moderator:  Christa_Meissner 
Who's Online
1 registered (Tanya_Belanger), 200 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1874 Members
5 Forums
14562 Topics
71060 Posts

Max Online: 484 @ 10/22/25 07:22 PM
November
Su M Tu W Th F Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30