Question

I have an issue with in DB when retrieving a field CreatedDate, the result have a difference of 5 hours. In starting i used DATEADD function.

DATEADD(HOUR, 5, IncidentDimvw.CreatedDate) AS CreatedDate

Id - DataBaseCreatedDate - EditedCreatedDate

IR21 - 02/02/2013 09:04:56 PM - 03/02/2013 02:04:56 AM

IR67 - 03/02/2013 06:02:02 AM - 03/02/2013 11:02:02 AM

IR78 - 03/02/2013 09:22:44 PM - 04/02/2013 02:22:44 AM

When Run the query after Selecting @StartDate = 03/02/2013 and @EndDate = 03/02/2013

It gives me two results IR21 and IR67

EditedCreatedDate is actually Orignal Incident Created Date And Time

But, when i use date range filter here i face some issues on timing like; if i select @startdate = 06/20/2013 (06/20/2013 00:00:00 AM actually it picks up this time)

There Should be some timezone problem kindly help me on this issue as i have no idea how to resolve it. May be it helps if i apply (@timezone) filter but unfortunetly where to apply this filter i donot know.

1

Was it helpful?

Solution

Hi i got some in the regard of my question. The steps below to add assembly. 1.In Design view, right-click the design surface outside the border of the report and click Report Properties. 2.Click References. 3.In Add or remove assemblies, click Add and then click the ellipsis button to browse to the assembly.

In you scenario, if you want to add timezone assembly, you can add System.Core. For the detail information about it, please see:

Working with Time Zones in SSRS

Hope this helps.

Regards,

Muhammad Ahsan Misbah

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top