Take the date licence expire

How can I get the license expiration date so that my app displays it?

Using the Config API Client sample - https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configapiclient/readme.html&tree=tree_2.html - it looks like this.

The information can be retrieved by RestAPI, Configuration API SOAP, and by the MIP SDK strongly typed classes (VideoOS.Platform.ConfigurationItems). Getting the information using the latter the code would look like this.

using VideoOS.Platform;
using VideoOS.Platform.ConfigurationItems;
 
private void GetLicenseInfo()
{
    var ms= new VideoOS.Platform.ConfigurationItems.ManagementServer(EnvironmentManager.Instance.MasterSite);
    var lic = ms.LicenseInformationFolder.LicenseInformations.FirstOrDefault();
	// GETTING ALL INSTALLED PPRODUCTS
    var licInstalledProducts = lic.LicenseInstalledProductFolder.LicenseInstalledProductChildItems;
    foreach (var licDetail in licInstalledProducts)
    {
        label1.Text += $"detail folder {licDetail.DisplayName} expire {licDetail.ExpirationDate}\n";
    }
    // SINGLE OUT THE MAIN LICENSE
	string expireDate = lic.LicenseInstalledProductFolder.LicenseInstalledProductChildItems.First(x => x.ProductDisplayName.StartsWith("XProtect")).ExpirationDate;
    label1.Text += $"expire {expireDate}\n";
}