UWP applications use the new CoreCLR to compile. Currently, CoreCLR does not support DateTime.ToShortDateString , and in any case, it does not seem to get much traction . These helper methods are bad at localization.
You can simply replace the call to dateToDisplay.ToString("d") .
Update
He seems to have some kind of craving! This method (along with several others) was added back to CoreCLR . This step was taken to improve parity with the API in Xamarin and the .NET Framework. You can learn more about this solution here .
source share