I have a set up XAML code below.
<Label Text="{Binding Date}"></Label> <Label Text="{Binding Time}'}"></Label>
I want result like september 12,2014 2:30 PM.
XAML allows developers to define user interfaces in Xamarin. Forms applications using markup rather than code. XAML is never required in a Xamarin. Forms program, but it is often more succinct and more visually coherent than equivalent code, and potentially toolable.
Change your code to:
<Label Text="{Binding Date, StringFormat='{0:MMMM dd, yyyy}'}"></Label> <Label Text="{Binding Time, StringFormat='{}{0:hh\\:mm}'}"></Label>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With