+ Start a Discussion
test777test777 

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

BussBuss

Hi Test,

 

below date methods link will help you

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_date.htm

 

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.

 

 

 

Reds,

Buss

jaxdmasterjaxdmaster

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?