Notepad on-line
declare @date DateTime
set @date = GETDATE()
SELECT LEFT(CONVERT(VARCHAR(8), @date, 8), 5) AS TimeOnly
/*TimeOnly--------15:04*/
Post a Comment
No comments:
Post a Comment