Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
in order to show date in Text box by xaml code :

<textblock name="tbArrivalDateTime">
            Text="{Binding Source={x:Static sys:DateTime.Today},
                   StringFormat='{}{0:dd-MMM-yyyy}'}"
                   VerticalAlignment="Center"
                   Grid.Row="3"
                   Grid.Column="1"
                   Margin="10,0,0,0"
                   HorizontalAlignment="Left"/>


the result for this is for example: 12/29/2012


the problem that i need to show the result seperated in 3 texblock
the first show day name
the second show day number
the third show month name

the result must be like this:

Sat.
29
Dec

and in frensh

Sam.
29
Dec

in french and english.

any idea for this
Posted
Updated 29-Dec-12 3:26am
v2

1 solution

I strongly recommend to U use IValueConverter , with it you can gain more flexibility for such output result .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900