IStorageItem.DateCreated IStorageItem.DateCreated IStorageItem.DateCreated IStorageItem.DateCreated IStorageItem.DateCreated Property

Definition

Gets the date and time when the current item was created.

public : DateTime DateCreated { get; }
DateTime DateCreated();
public DateTimeOffset DateCreated { get; }
Public ReadOnly Property DateCreated As DateTimeOffset
var dateTimeOffset = iStorageItem.dateCreated;

Property Value

DateTimeOffset DateTimeOffset DateTimeOffset

The date and time when the current item was created.

For example, in string format the DateTime that an item was created might be "Fri Sep 16 13:47:08 PDT 2011".

Remarks

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.