tags:

views:

31

answers:

1
Text="{Binding Path=PostDate.Date}"

I don't want to show the time part in my control. Instead of 8/26/2010 12:00 AM, I want 8/26/2010.

Is there any easy way to do that without any explicit/implicit conversion or overriding some methods ?

+1  A: 

Since 3.5 SP1, you can use Binding.StringFormat. See this post for more examples

Text="{Binding Path=PostData.Data, StringFormat={}{0:MM/dd/yyyy}}"
Bubblewrap