I want to calculate no.of weeks from the given two dates (i.e Todate - Fromdate )
Look into the method, for similar kind of logic
\Classes\HcmAbsenceStatusReportDP\getNumberOfDays
Please use a relative title for your posts in future for more visibility.