on 2015 Aug 03 6:36 AM
Hi Experts,
How to convert the integer to Time using SQL query ???
For Ex,
Integer Format Time Format
1115 => 11:15 AM
Regards,
K.Ramasamy
Request clarification before answering.
try this
SELECT CONVERT( TIME, STUFF( RIGHT( '0000' + CONVERT( VARCHAR(5), '1115'), 4), 3, 0, ':'))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 41 | |
| 25 | |
| 15 | |
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.