I want to convert 'dd' that is a number that indicate Data device (dd is in second).
At the moment I can extract the Year, Month, Day, Hour with this query in Azure Stream Analytics:
DATEPART(YEAR, DATEADD(MILLISECOND, dd, '1970-01-01')) AS [Year],
DATEPART(MONTH, DATEADD(MILLISECOND, dd, '1970-01-01')) AS [Month],
DATEPART(DAY, DATEADD(MILLISECOND, dd, '1970-01-01')) AS [Day],
DATEPART(HOUR, DATEADD(MILLISECOND, dd, '1970-01-01')) AS [Hour]
I want to extract the DateTime from dd, so after that i can insert on a database.
Can someone help me?