Documentation > CMS Template API Library > Asset > StatusDate

StatusDate

The last time the asset's status was changed. Might not be initialized, use HasValue to check.

Type

Nullable<DateTime>

Value

The time the asset's status was changed.

Code Example

C#

Sample:
	Asset myAsset = Asset.Load("/PathTo/Asset");		
	if(myAsset.IsLoaded)
	{
		Nullable<DateTime> dt = myAsset.StatusDate;
		Out.WriteLine("Date: " + dt.ToString() + "<br />");
	}

Connect with Crownpeak