WPF XAML StringFormat DateTime: Output in wrong culture?

前端 未结 6 1498
南旧
南旧 2021-02-03 16:49

I\'m having some trouble with the output of a DateTime value. My computer\'s current culture is set to de-AT (Austria).

The following code

string s1 = Da         


        
6条回答
  •  有刺的猬
    2021-02-03 17:42

    If you want one particular language, you can set it on the top level element using xml:lang.

    For example:

    
    ...
    
    

提交回复
热议问题