I have time, select cast(SYSDATETIME() AS time) 14:59:09.2834595
What is the way to truncate seconds? 14:59
You can use the T-SQL function convert
.
PRINT convert(varchar(5), SYSDATETIME(), 108)
will give you hh:mm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With