Format date in DataFormDateField

3 posts, 0 answers
  1. Edward
    Edward  avatar
    32 posts
    Member since:
    Jan 2008

    Posted 13 Apr 2011 Link to this post

    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. Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 13 Apr 2011 Link to this post

    Hi Edward ,

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

    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
  3. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 13 Apr 2011 Link to this post

    Hope this example helps ;-) Cheers.

    <telerik:DataFormDateField DataMemberBinding="{Binding Path=DueDate, StringFormat=M/d/yyyy}"
                               Label="Due Date"
                               Grid.Row="2" />
Back to Top