Share Blog

Friday, March 07, 2014

How to Get Current Time from System in SQL SERVER

It is returns the current System Time.
DECLARE @DateTime DATETIME
SELECT @DateTime = GETDATE()
SELECT CONVERT(VARCHAR(10),@DateTime ,108) AS Time

No comments:

Post a Comment