Hi Team
How do we get current week number . Remember first Saturday of year is considered as first day of the year.
Thanks in advance
Hi Team
How do we get current week number . Remember first Saturday of year is considered as first day of the year.
Thanks in advance
Hi @SuperWomen
Please use the below syntax:
Enumerable.Range(0,Now.DayOfYear).Count(Function(i) New DateTime(Now.Year,1,1).AddDays(i).DayOfWeek = DayOfWeek.Saturday)
Regards
PS Parvathy
Hi,
How about the following expression? Try and let me know if it helps
Enumerable.Range(0,Now.DayOfYear).Count(Function(i) New DateTime(Now.Year,1,1).AddDays(i).DayOfWeek = DayOfWeek.Saturday)
Cheers,
Hi @SuperWomen
This way the week count always starts from the first Saturday of the year.
Hi @SuperWomen ,
Try this:
CInt(Math.Floor((Now - firstSaturday).TotalDays / 7)) + 1
Let me know if u need help
Thanks & Happy Automations.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.