How to convert months to years

0
Hi All, I want solution on one issue like I have a months and I want to convert that months into years, For example: 24 month = 2 years, 30 months= 2 years 6 months. can any one tell me how can we do that. Thanks
asked
1 answers
2

Dear Priyanka,

 

You can use Arithmetic expressions and Mathematical functions, example inside variables .

Divide the number X by 12 and take floor, this will give you the Years.

Use X mod 12, this will give you the remaining months.

 

Refer to this Documentation for Arithmetic expressions and this Documentation for Mathematical functions.

 

 

 Regards,

Sufian.

 

 

answered