Quantcast
Channel: THWACK: Message List - Network Performance Monitor
Viewing all articles
Browse latest Browse all 25172

Re: How to convert UTC date to local time in an alert message

$
0
0

After many trials and errors, I found the solution.  There's no need to concatenate using the + and the ''''' to get one quote mark.  SWQL is already parsing and concatenating, so you just need to insert the single quote mark:

 

Local time:  ${SQL:Select DATEADD(hh,DATEDIFF(hh, GETUTCDATE(), GETDATE()),(''${CustomPollerStatus.DateTime}'))}

 

I hope this helps someone else


Viewing all articles
Browse latest Browse all 25172

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>