Utiity method to get week number of month by passing a Datetime value
Hi Techies, Here below is the Method that you can use in order to fetch week number in a month: for ex: Pass -> Result .......................................... 1July2016 1 8July2016 2 22July2016 4 and so on.... Method : public Integer weekOfMonth( Datetime dateVar){ Date currentDate = dateVar.Date(); Integer weekCount = 0; Integer startWeekResidue = 0; Integer endWeekResidue = 0; //Calculating startWeekResidue ...