Share via


ImageProperties.DateTaken Property

Definition

Gets or sets the date when the image was taken.

public:
 property DateTime DateTaken { DateTime get(); void set(DateTime value); };
DateTime DateTaken();

void DateTaken(DateTime value);
public System.DateTimeOffset DateTaken { get; set; }
var dateTime = imageProperties.dateTaken;
imageProperties.dateTaken = dateTime;
Public Property DateTaken As DateTimeOffset

Property Value

The date when the image was taken.

Remarks

If the date property isn't set, this value defaults to January 1, 1601 00:00:00. You should always check that this property is a real value and not the default date.

Applies to