1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <TextBox Text="{Binding DateTimeNow, StringFormat={}{0:d}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:D}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:f}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:F}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:g}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:G}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:m}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:M}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:t}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:T}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:yyyy年MM月dd日}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:yyyy-MM-dd}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:yyyy-MM-dd HH:mm}}" />
<TextBox Text="{Binding DateTimeNow, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" />
|