Count the Number of days ( HRM Module)

HI All

I was very new to Ax x++ coding… I have an issue like i have to count the number of days for the below Path… can anmy one help me how solve this issue and which methods i have to override here .

HRM-> Journals-> Request In the Request form we can find the From Date & To Date , in my requirement i have created the one string edit field . once we selected the From Date & To Date the String field should be count for the no of days automatically . for this requiorement what code i need to write and where i need to write the code .The string fiels name is No Of Days

The difference of two dates will give you an integer and not a string, so you should use a int field.

You can place your code in the modified method of the fields.

read about display methods