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

Format date in DataFormDateField

2 Answers 137 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 13 Apr 2011, 04:32 PM
I must be missing something here, but I don't see anything to format date in DataFormDateField.

The API reference mentioned ContentStringFormat, but that property is not found?

The Silverlight demo showed this can be done, but it was using AutoGeneratingField which I am not using.

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 13 Apr 2011, 04:42 PM
Hi Edward ,

For manually defined fields you may use the string format property of the DataMemberBinding .

Greetings,
Pavel Pavlov
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
0
Gonzalo
Top achievements
Rank 2
answered on 13 Apr 2011, 07:26 PM
Hope this example helps ;-) Cheers.

<telerik:DataFormDateField DataMemberBinding="{Binding Path=DueDate, StringFormat=M/d/yyyy}"
                           Label="Due Date"
                           Grid.Column="2"
                           Grid.Row="2" />
Tags
DataForm
Asked by
Edward
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Gonzalo
Top achievements
Rank 2
Share this question
or