Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Forms timepicker 24hour

I'm new to Xamarin.Forms and i can't seems to find how to show the dialog in a 24hour format instead of a AM/PM

can someone help me ?

Thank you

like image 463
user3718160 Avatar asked May 12 '15 10:05

user3718160


1 Answers

This page is really usefull to learn how to format dates in C#:

https://msdn.microsoft.com/en-us/library/8kb3ddd4%28v=vs.110%29.aspx

And with this code I was able to show a 24 hour format:

TimePicker timePicker = new TimePicker
{
   Format = "HH:mm"
};
like image 100
Mario Galván Avatar answered Sep 28 '22 08:09

Mario Galván