BasicProperties.ItemDate | itemDate property

Applies to Windows and Windows Phone

Gets the most relevant date for the item.

Syntax


Public ReadOnly Property ItemDate As DateTimeOffset

Property value

Type: Date [JavaScript] | System.DateTimeOffset [.NET] | Windows::Foundation::DateTime [C++]

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.

If the date property isn't set, this value defaults to 0 which can be translated into misleading dates in different programming languages. In JavaScript, for example, 0 translates to December 16, 1600. You should always check that this property is a real value and not 0.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage.FileProperties
Windows::Storage::FileProperties [C++]

Metadata

Windows.winmd

See also

BasicProperties

 

 

Show:
© 2014 Microsoft