I am having problems with date formats in CRM reports. I have created the reports in BIDS and they mostly work OK but there seems to be a confusion between time zones and daylight savings.
To avoid confusion with dates I want the formats to explicitly mention the month name rather than a number so in the reports I format the date fields as;
=IIF(IsNothing(Fields!qubic_servicemodule_starttimeValue)
,""
,IIF(IsNothing(Fields!qubic_servicemodule_starttimeValue.Value)
,""
,Day(Fields!qubic_servicemodule_starttimeValue.Value) & " "& MonthName(Month(Fields!qubic_servicemodule_starttimeValue.Value), True) & " " & Year(Fields!qubic_servicemodule_starttimeValue.Value)& " " & Right("0" & Hour(Fields!qubic_servicemodule_starttimeValue.Value), 2)& ":" & Right("0" & Minute(Fields!qubic_servicemodule_starttimeValue.Value), 2) ) )
This works but all dates and times appear as UTC. This is much as I would expect because the internal format is UTC. If I change the formatting to be;
=IIF(IsNothing(Fields!qubic_servicemodule_starttime) ,"" ,IIF(IsNothing(Fields!qubic_servicemodule_starttime.Value) ,"" ,Day(Fields!qubic_servicemodule_starttime.Value) & " "& MonthName(Month(Fields!qubic_servicemodule_starttime.Value), True) & " " & Year(Fields!qubic_servicemodule_starttime.Value)& " " & Right("0" & Hour(Fields!qubic_servicemodule_starttime.Value), 2)& ":" & Right("0" & Minute(Fields!qubic_servicemodule_starttime.Value), 2) ) )
The dates and times are formatted correctly and appear in the correct time zone but it generates an error for dates past the 12th of any month. That suggests a confusion between US and UK date formats but the strange thing is that the dates are presented correctly, i.e. 7/6/2014 appears as 7 June and not 6 July but as soon as it gets to 13/6/2014 it raises an error.
So how can I format dates correctly and use the user's time zone. I can't use any of the date format options because there isn't enough flexibility in that to produce what I want I could mix the fields but that seems wrong.