Find date and time when dns records were created and modified in Windows Server 2016 and Windows Server 2012 R2

Following one liner will display the dns records with date created and modified:

Windows Server 2012 R2:
Get-ChildItem “AD:DC=DomainDNSZones,DC=contoso,DC=com” -Recurse | Get-ADObject -Properties Created,Modified | Select-Object Name,Created,Modified | Sort-Object -Property Created

Windows Server 2016
Get-ChildItem “AD:DC=DomainDNSZones,DC=contoso,DC=com” | Get-ADObject -Properties Created,Modified | Select-Object Name,Created,Modified | Sort-Object -Property Created