Use DateTime for InstallationTemplate.Expiry property in .NET API
Right now the datatype for the APNS-specific Expiry property on InstallationTemplate is a string. I have... no idea what to put there. The API reference is less than helpful:
Since it looks like the expiry ends up as a binary encoded integer value of seconds since the UNIX epoch, I can't really use that to guess what format Azure expects.
This would all be moot if the Notification Hub .NET API used a DateTime for the expiry and handled the translation to the format APNS requires.
Andrey Efimov commented
Something like "2009-06-15T13:45:30.0000000-07:00" will work for sure. If timezone is not specified then UTC assumed.
The reason why the property's type is String but not DateTime is the ability to specify an expression instead of certain value.
Here you can find more info about template expressions: https://msdn.microsoft.com/en-us/library/azure/dn530748.aspx