Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (17.6k points)

I don't know why I have such a problem with that.

I have a dataset which returns the date in the format I want: M / d / yyyyy. However, if I preview the report with the data in a table it will continue to display it as MM / dd / yyyy.

I tried to set the Format property of the text field to M / d / yyyyy, (no change) and I tried to set the expression for that field to = Format(Fields!TripDate. Value,"M / d / yyyyyy) "but only to see the actual M / d / yyyy values in the field.

What am I wrong?

I scoured the internet looking for some format option that would just drop the leading zeros on the date and nothing suggested works.

closed

1 Answer

0 votes
by (47.2k points)
selected by
 
Best answer

From your description it sounds a lot like you don't select a column from the database with a "DATE" datatype (as it's not "Formatted"), so maybe you're formatting it in the SQL SELECT?

Also, the fact that your Format expression doesn't work suggests the data is actually a string.

It is best to NOT format dates in the SQL query and just use the "format" property of the textb

Check out ssrs tutorial that helps you to gain much more knowledge. 

Related questions

0 votes
1 answer
asked Jan 31, 2020 in BI by Vaibhav Ameta (17.6k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 27, 2020 in BI by Vaibhav Ameta (17.6k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 10, 2020 in BI by Vaibhav Ameta (17.6k points)

Browse Categories

...