3

Display in reporting services text box - data is grouped. Best way to format grouped data 20170518110610 to DD MMM YYYY HH MM?

I.e.

18 May 2017 11:06

Tried Text box properties - number - custom format - dd-mmm-yyyy hh:mm the result is the same 20170518110610

Rosebud
  • 579
  • 2
  • 10
  • 19

1 Answers1

3

You have problems because 20170518110610 is a varchar. You need to convert it to date before format it.

Possible solutions:

1) Return a datetime not varchar from datasource (preferred)

2) Parse value in SSRS then format value:

=Format(DateTime.ParseExact("20170518110610", "yyyyMMddHHmmss", Nothing), "dd-mmm-yyyy hh:mm")
Mikhail Lobanov
  • 2,976
  • 9
  • 24