BasicProperties.DateModified BasicProperties.DateModified BasicProperties.DateModified BasicProperties.DateModified BasicProperties.DateModified Property

Definition

Gets the timestamp of the last time the file was modified.

public : DateTime DateModified { get; }
DateTime DateModified();
public DateTimeOffset DateModified { get; }
Public ReadOnly Property DateModified As DateTimeOffset
var dateTimeOffset = basicProperties.dateModified;

Property Value

DateTimeOffset DateTimeOffset DateTimeOffset

The timestamp.

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.