# Count the Number of days ( HRM Module)

**URL:** <https://www.dynamicsuser.net/t/count-the-number-of-days-hrm-module/32385>\
**Category:** Developer Forum\
**Created:** [August 17, 2011, 10:24am UTC](https://www.dynamicsuser.net/t/count-the-number-of-days-hrm-module/32385 "2011-08-17T10:24:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavankumar1363](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@pavankumar1363](https://www.dynamicsuser.net/u/pavankumar1363)\
**Post date:** [August 17, 2011, 10:24am UTC](https://www.dynamicsuser.net/t/count-the-number-of-days-hrm-module/32385/1 "2011-08-17T10:24:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://www.dynamicsuser.net/u/kranthi)\
**Post date:** [August 19, 2011, 5:02pm UTC](https://www.dynamicsuser.net/t/count-the-number-of-days-hrm-module/32385/2 "2011-08-19T17:02:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Noobish](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@Noobish](https://www.dynamicsuser.net/u/Noobish)\
**Post date:** [August 23, 2011, 2:29pm UTC](https://www.dynamicsuser.net/t/count-the-number-of-days-hrm-module/32385/3 "2011-08-23T14:29:12Z")

</div>

read about display methods
