How to find week number in a month instead of in a year

1
Hi I am trying to count the number of the week in a month, but Mendix provided to find a week in a year. Any help? Thanks in advance!
asked
1 answers
10

Hi

You have to write some custom logic

AnyDate =  CurrentDateandTime

BeginOfCurrentMonth = beginOfMonth($CurrentDateandTime)

NoOfWeeks = round(weeksBetween($BeginOfCurrentMonth,$CurrentDateandTime))

 

 

 

Hope it helps!

answered