在XAML中将DateTime转换为LongDateString
如何转换DateTime属性在XAML中将DateTime转换为LongDateString,xaml,xamarin.forms,Xaml,Xamarin.forms,如何转换DateTime属性 <Label Text="{Binding PaymentDate}"></Label> <Label Text="{Binding PaymentDate, StringFormat=D}"></Label> 请让我知道使用什么字符串格式。上述逻辑不起作用 <Label Text="{Binding PaymentDate, StringFormat=D}"></Label> 您有两
<Label Text="{Binding PaymentDate}"></Label>
<Label Text="{Binding PaymentDate, StringFormat=D}"></Label>
请让我知道使用什么字符串格式。上述逻辑不起作用
<Label Text="{Binding PaymentDate, StringFormat=D}"></Label>
您有两个选择: 备选案文1: 在XAML中执行字符串格式:
<Label Text="{Binding ActualDate, StringFormat='{0:MMMM d, yyyy HH:mm}'}" Font="15,Bold" />
您有两个选择: 备选案文1: 在XAML中执行字符串格式:
<Label Text="{Binding ActualDate, StringFormat='{0:MMMM d, yyyy HH:mm}'}" Font="15,Bold" />
你在说什么“超逻辑”?你没有发布任何代码。你在说什么“以上逻辑”?你没有发布任何代码。