Skip to main content
LicenseInformation.ExpirationDate | expirationDate property

Gets the license expiration date and time relative to the system clock.

Syntax


var expirationDate = licenseInformation.expirationDate;

public DateTimeOffset ExpirationDate { get; }

Public ReadOnly Property ExpirationDate As DateTimeOffset

public:
property DateTime ExpirationDate { 
   DateTime get();
}

Property value

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

The date and time that the app's trial license will expire.

ValueMeaning
a valid date value

The license is active and expires on this date.

This occurs during the app's trial period.

maxDate

The license is active and never expires.

This occurs after the customer buys the app.

minDate

The license is not active.

 

Remarks

Windows Phone 8

This API always returns 9999 – 12 – 31 (ETERNITY_FILETIME_TIME).

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

Metadata

Windows.winmd

See also

LicenseInformation