BasicProperties.ItemDate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the most relevant date for the item.
public:
property DateTime ItemDate { DateTime get(); };
DateTime ItemDate();
public System.DateTimeOffset ItemDate { get; }
var dateTime = basicProperties.itemDate;
Public ReadOnly Property ItemDate As DateTimeOffset
Property Value
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.
Remarks
This property lets you get the most relevant date for an item without the need to access item-specific properties.