xamarin/Xamarin.Forms

DatePicker.Format doesn't work on UWP platform .

Aperta

#8670 aperta il 26 nov 2019

 (4 commenti) (2 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/3 :clock3:help wantedinactivep/UWPt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I have a DatePicker in my application and I want to display the date in this format : 11/26/2019 So I change the Format property as follow :

myDatePicker.Format = "MM/dd/yyyy"
myDatePicker.Date = DateTime.Now;

Above code works fine on Android and iOS , but on UWP ,the display date got this format : November 26 2019 .

Guida contributor