# How to get Table modified date time in X++

**URL:** <https://www.dynamicsuser.net/t/how-to-get-table-modified-date-time-in-x/68858>\
**Category:** Developer Forum\
**Created:** [August 24, 2021, 1:26pm UTC](https://www.dynamicsuser.net/t/how-to-get-table-modified-date-time-in-x/68858 "2021-08-24T13:26:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaimondasB](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@RaimondasB](https://www.dynamicsuser.net/u/RaimondasB)\
**Post date:** [August 24, 2021, 1:26pm UTC](https://www.dynamicsuser.net/t/how-to-get-table-modified-date-time-in-x/68858/1 "2021-08-24T13:26:57Z")

</div>

Hello,

i need to get modified date time of a table in D365 by x++,

i understand its possible only for those tables which have modified date time enabled,

my code is below:

1. i tried two ways, first is xUtilElements

2. second one i tried was to find modified date time as a property on AxTable object, both ways failed, any suggestion how to get table modified date by x++ ???

```auto
// tableModified is an NoYes Enum
// tableObject is an AxTable from Microsoft.Dynamics.Ax.Xpp.MetadataSupport

        if (tableModified)
        {
            if(tableObject.ModifiedDateTime)
            {
                tableNode = TreeNode::findNode('\\Data Dictionary\\Tables\\' + tableObject.Name);

                utilElements = xUtilElements::findTreeNode(tableNode);

                conForExport = conPoke(conForExport, conLen(conForExport)+1, utilElements.ModifiedDateTime);
            }
        }
        else
        {
            conForExport = conIns(conForExport, conLen(conForExport)+1, '');
        }

```

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [August 24, 2021, 2:18pm UTC](https://www.dynamicsuser.net/t/how-to-get-table-modified-date-time-in-x/68858/2 "2021-08-24T14:18:19Z")

</div>

Your code suggests that you want to know when metadata or code of a table was modified, but such information isn’t deployed to the ERP system. If you’re talking about your own changes, you’ll find the infomation in your version control system (Azure DevOps).
