Documentation > CMS Template API Library > Asset > CreateDate

CreateDate

The date and time the asset was created.

Type

Nullable<DateTime>

Value

The time the asset was created.

Code Example

C#

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

Connect with Crownpeak