title: How to get expiration date for a trial license for an app published in the Windows 10 Store using Windows.Services.Store namespace?
body: <p>I have a <a href="https://developer.microsoft.com/en-us/windows/bridges/desktop" rel="nofollow">converted Win32 app</a> that is posted in the Windows 10 Store under a <a href="https://msdn.microsoft.com/windows/uwp/monetize/implement-a-trial-version-of-your-app" rel="nofollow">trial license</a>. I am using a C++/WRT version of <a href="https://msdn.microsoft.com/windows/uwp/monetize/implement-a-trial-version-of-your-app" rel="nofollow">this code</a> to retrieve app license info, but for some reason the <a href="https://msdn.microsoft.com/en-us/library/windows/apps/windows.services.store.storeapplicense.expirationdate.aspx" rel="nofollow">ExpirationDate</a> member of <code>IStoreAppLicense</code> is always returned as <code>9999-12-31 00:00:00</code>.</p>
  
  <p>Any idea why?</p>
  
  <p>Here's the full JSON that I'm getting from the Store for my app:</p>
  
  <pre><code>{
    "productAddOns":[],
    "productId":"edited-out",
    "skuId":"0011",
    "isActive":true,
    "isTrial":true,
    "isTrialOwnedByThisUser":false,
    "expiration":"9999-12-31 00:00:00"
  }
  </code></pre>