Different Time Format In SQL Server
1.Get HH:mm:ss Time Format:
select convert(varchar(10),GETDATE(),108) as Time
Result:
Time
22:45:44
2.Get HH:mm:ss:mmm Time Format:
select convert(varchar(20),GETDATE(),114) as Time
Result:
Time
22:45:44:887
Comments
Post a Comment
Thank You for your Comment