Is there a way to use culture specific characters in a WPF-StringFormat?
I’m trying to format a date to only show the month and the year separated by the culture specific … uuh.. separator.
Here is my code:
Binding="{Binding StartDate.Value, StringFormat={}{0:MM.yyyy}, Converter={StaticResource StartEndDateTimeConverter}"
What would I use as a replacement for the dot?
I found the solution. Instead of the ‘.’ I should have been using the ‘/’-Symbol to separate the months from the years.