function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

calculate the week of month



I'm trying to calculate the week of month using apex . what I actually want is suppose if I have 52 records created with the start date and end dates like.. 1st... 1/1/2014 to 8/1/2014. 2nd ... 8/1/2014 to 15/1/2014 and so on....

so I want to calculate that what is the number of week like.... 1st week , 2nd week and so on....


if anyone has the solution for this than please let me know .............. thanks in advance..... :)