Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

DateTime output in wrong Cultrue

$
0
0

Hey,
I am having a problem with the output of a DateTime value.
The device culture is German so I expected a DateTime to get formated to the culture but it doesn't work.

<Label Text="{Binding EndDate, StringFormat=\{0:hh:mm\}}" FontSize="Small" TextColor="{StaticResource ForeColor}"/>

The output of this is for example "04:00" and not "16:00" how I would like to have it.

How can I format the DateTime to the current culture?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>