If I perform this action on my local desktop:
(get-adcomputer $env:computername -Properties accountexpires).accountexpires | gm
((get-adcomputer $env:computername -Properties accountexpires).accountexpires).gettype()
I get a type of: TypeName: System.Int64
I wonder if this int value is a tick:
Looks like it is:
C:\Windows\System32\WindowsPowerShell\v1.0> (get-date).ticks
635997201401143677
C:\Windows\System32\WindowsPowerShell\v1.0> (get-date).ticks.gettype()
IsPublic IsSerial Name BaseType
True True Int64 System.ValueType
$a = ((get-adcomputer $env:computername -Properties accountexpires).accountexpires)
New-Object System.DateTime $a