Documentation > CMS Template API Library > Asset > ModifiedDate
ModifiedDate
A change in the asset's content properties Might not be initialized, use HasValue to check.
Type
Nullable<DateTime>
Value
The time the asset was modified.
Code Example
C#
Sample:
Asset myAsset = Asset.Load("/PathTo/Asset"); if(myAsset.IsLoaded) { Nullable<DateTime> modifiedDT = myAsset.ModifiedDate; if(modifiedDT.HasValue) { Out.WriteLine("Modified Date: " + modifiedDT.ToString()); } }