cancel
Showing results for 
Search instead for 
Did you mean: 

DateTimeDiff giving incorrect value for "months"

SOLVED
hemant86
11 - Bolide

DateTimeDiff giving incorrect value for "months"

Hi ,

 

Is there a issue with the DateTimeDiff function. Its giving me incorrect values on multiple scenarios and correct on some. Please see the screenshot below of my result window. And this is the function I'm using DateTimeDiff([DOL],[DOJ],"month")

hemant86_0-1631295089377.png

 

5 REPLIES 5
hemant86
11 - Bolide

DateTimeDiff giving incorrect value for "months"

Hi ,

 

Is there a issue with the DateTimeDiff function. Its giving me incorrect values on multiple scenarios and correct on some. Please see the screenshot below of my result window. And this is the function I'm using DateTimeDiff([DOL],[DOJ],"month")

hemant86_0-1631295089377.png

 

atcodedog05
22 - Nova

Re: DateTimeDiff giving incorrect value for "months"

Hi @hemant86 

 

Here is an explanation for the output.

 

atcodedog05_0-1631295401425.png

 

1st row difference is 5 months 28 days it considers only the month hence showing 5 months.

2nd row difference is 6 months hence showing 6 months.

 

Hope this helps : )

 

Re: DateTimeDiff giving incorrect value for "months"

Hi @hemant86 

 

Here is what you can do to get the required output absolute months difference.

Workflow:

atcodedog05_0-1631295724139.png

 

Hope this helps : )

 

Attachment
Download this attachment
Highlighted

Re: DateTimeDiff giving incorrect value for "months"

Thanks @atcodedog05 ...for the clarification!

Re: DateTimeDiff giving incorrect value for "months"

That did the job for me ....Thanks @atcodedog05 

Re: DateTimeDiff giving incorrect value for "months"

Happy to help : ) @hemant86 

If my response helps please don't forget to mark my response as solution.

Cheers and have a nice day!