Documentation > CMS Template API Library > Asset > CheckoutDate

CheckoutDate

The date and time the asset was checked out. Might not be initialized, use HasValue to check.

Type

Nullable<DateTime>

Value

The time the asset was checked out.

Code Example

C#

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

Connect with Crownpeak