You can get the local time of the SQL Server by using the getdate() system function.
<pre>SELECT getdate()</pre>
If you want to get UTC time use the getutcdate() system function.
<pre>SELECT getutcdate()</pre>
Last Wiki Answer Submitted: August 27, 2008 8:15 am by Denny Cherry64,505 pts.
All Answer Wiki Contributors: Denny Cherry64,505 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.