Hi All,
Please help in fixing the Daylight Saving.
Here is my query for Eastern Time.
SELECT
a.callingPartyNumber,
a.finalCalledPartyNumber,
a.originalCalledPartyNumber,
dateadd(second,ISNULL((a.dateTimeOrigination-18000),a.dateTimeOrigination),'19700101 00:00:00') as Originated,
dateadd(second,ISNULL((a.dateTimeConnect-18000),a.dateTimeConnect),'19700101 00:00:00') as Connected,
dateadd(second,ISNULL((a.dateTimeDisconnect-18000),a.dateTimeDisconnect),'19700101 00:00:00') as Disconnected,
FROM
dbo.CallDetailRecord a
WHERE
dateadd(second,a.dateTimeOrigination-18000,'19700101 00:00:00') between :StartDate and :EndDate
Thanks
Please help in fixing the Daylight Saving.
Here is my query for Eastern Time.
SELECT
a.callingPartyNumber,
a.finalCalledPartyNumber,
a.originalCalledPartyNumber,
dateadd(second,ISNULL((a.dateTimeOrigination-18000),a.dateTimeOrigination),'19700101 00:00:00') as Originated,
dateadd(second,ISNULL((a.dateTimeConnect-18000),a.dateTimeConnect),'19700101 00:00:00') as Connected,
dateadd(second,ISNULL((a.dateTimeDisconnect-18000),a.dateTimeDisconnect),'19700101 00:00:00') as Disconnected,
FROM
dbo.CallDetailRecord a
WHERE
dateadd(second,a.dateTimeOrigination-18000,'19700101 00:00:00') between :StartDate and :EndDate
Thanks