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

Urgent:how to calculate the no of days from quarterly wize.

Hi all,

     i have one object called leaves.In this we have to calculate the no of used days quarterly wize.

i.e.,from date,To date two date fields.Based on the from date,to date  two values are entered then no of days obtained.

no.of.days=todate-fromdate+1; and these no of days are calculated based on quarterly wize. Any one can u please help me this.



Thanks in advance


Hi Test,


below date methods link will help you


You can use daysBetween() to find Number of days between from and to dates.


if this is not provides your answer, Please elaborate your description.







Hi test777,


Buss is right. That link will give you idea how to use date class methods. Your question is too broad and requires very big logic. Can you be specific, what exactly you want?