I wrote this query to get the MWs created on SolarWinds. I wanted to check if we could add a column which shows the date and time the MW was created in UTC
SELECT TOP 1000 EntityUri, Caption, IPAddress, tostring(SuppressFrom) as [Suppression From],
case when SuppressUntil is null or SuppressUntil = '9999-01-01 00:00:00' then 'Not set'
else tostring(SuppressUntil ) end AS [Suppression To]
,case when SuppressUntil is null or SuppressUntil = '9999-01-01 00:00:00' then 'Unlimited Time Period'
else tostring(daydiff(getutcdate(), asu.SuppressUntil)) end as [Days Left],
NCP.MWTaskNumber
FROM Orion.AlertSuppression asu
join orion.nodes N on asu.entityuri=N.uri
LEFT JOIN Orion.NodesCustomProperties NCP on N.NodeID = NCP.NodeID