Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi i need to get a string from hours. For example, if the hours is 12:48, then i need h = 12 andm = 48 but if the hours is 6:49 then i needh = 6m = 48i tried left and right functions for it but how do i know that hours are two digits or a single digit. ThanksAbhishek