Package.InstallDate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Windows Phone only. Gets the date the application package was installed on the user's phone.
public:
property DateTime InstallDate { DateTime get(); };
DateTime InstallDate();
public System.DateTimeOffset InstallDate { get; }
var dateTime = package.installDate;
Public ReadOnly Property InstallDate As DateTimeOffset
Property Value
The date the application package was installed on the user's phone.
Remarks
Windows Phone 8
If you acquire the Package instance by using the Windows.ApplicationModel.Package.Current property, getting the InstallDate property raises an InvalidCastException. If you want to get the InstallDate property, acquire the Package instance by using the Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher method.
using Windows.ApplicationModel;
IEnumerable<Package> packages = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
Package package = packages.First();
DateTimeOffset packageInstallDate = package.InstallDate;
Windows 10
This API is not implemented and will throw an exception if called.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for