'Declaration
<DisplayFormatAttribute("{0:d} {0:T}")> Public ReadOnly Property NotAfter As Date
'Usage
Dim instance As PkiCertificateInfo Dim value As Date value = instance.NotAfter
[DisplayFormat("{0:d} {0:T}")] public DateTime NotAfter {get;}
[DisplayFormat("{0:d} {0:T}")] public: property DateTime NotAfter { DateTime get(); }