Trying to format date inside of text box.

3 posts, 1 answers
  1. JET
    JET avatar
    19 posts
    Member since:
    Dec 2012

    Posted 01 Oct 2015 Link to this post

    I'm trying to show the data range selected as parameters in the header of the report. I added a text box and added {Parameters.StartDate.Value}. The problem is it shows the time and I just need the date. I tried this { Format('{0:d}',Parameters.StartDate.Value)} but it does not work. What is the proper way to accomplish my objective. Thanks in advanced. 
  2. Answer
    Stef avatar
    3053 posts

    Posted 06 Oct 2015 Link to this post

    Hello Jet,

    The following expression works as expected as a value of a TextBox item:
    = Format('{0:d}', Parameters.Parameter1.Value)
    The above expression is tested with Telerik Reporting Q3 2015. The expression uses the Format text function and standard Date and Time format strings.

    Other approach is to use the TextBox item's Format property, where formats will be displayed depending on the application's current culture - Report Globalization.

    Let us know if you have any further questions.

    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. JET
    JET avatar
    19 posts
    Member since:
    Dec 2012

    Posted 06 Oct 2015 in reply to Stef Link to this post

    Thanks a lot Stef.
Back to Top