Click here to Skip to main content
11,642,402 members (66,350 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF
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 29-Dec-12 2:53am
Edited 29-Dec-12 3:26am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

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



Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | Last Updated 29 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100