This is a migrated thread and some comments may be shown as answers.

DataFormatString

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
guy
Top achievements
Rank 1
guy asked on 07 Oct 2010, 12:38 PM
hi ,
im tring to change the display of date , i need the date to display only the date and not the hour
so i found how to do it:
DataFormatString="{0:d}"
the problem is i receive compilation error this way and it's work only if i add "."

DataFormatString=".{0:d}"
but i dont want to see the "."
how can i remove it?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 07 Oct 2010, 01:08 PM
Hello guy,

 If this is declared in XAML you should escape it like this:

DataFormatString="{}{0:d}"

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
guy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or