Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Clarion Date Conversion

$
0
0
The database for our software stores dates and times in clarion format. I'm trying to write some custom reports in T-SQL and I need to convert these dates but it's giving me a lot of trouble. How do I query the dates and times and have the results shown as a "regular" date/time? Below is what I have so far which is really the very beginnings of this report. Basically on the results/output I need the ClarionDate and ClarionTime to be shown as typical date/time columns. I did some research on my own but I'm having a hard time grasping this. I believe they have to be pulled into a temp table and then converted? If anyone can explain this I'm sure I'll be able to grasp it once I see the correct code or point me in the direction where I can hopefully figure it out on my own. Thank you in advance!!!SELECT A1.DATEOFACCESS ClarionDate, A1.TIMEOFACCESS ClarionTime, A2.NAME EventFROM dbo.History A1JOIN dbo.SysEvents A2ON A1.RSVD_Action = A2.RSVD_EVENTTYPE

Viewing all articles
Browse latest Browse all 3145

Trending Articles