BasicProperties.ItemDate Property


Gets the most relevant date for the item.

 property DateTime ItemDate { DateTime get(); };
DateTime ItemDate();
public System.DateTimeOffset ItemDate { get; }
var dateTime = basicProperties.itemDate;
Public ReadOnly Property ItemDate As DateTimeOffset

Property Value

DateTime DateTimeOffset

The item's date.

The system determines the most relevant date based on the type of the item. For example, if the item is a photo the date in System.Photo.DateTaken is returned. Or if the item is a song the date in System.Media.DateReleased is returned.


This property lets you get the most relevant date for an item without the need to access item-specific properties.

Applies to