Convert varchar to time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amitaon
    New Member
    • Mar 2012
    • 1

    #1

    Convert varchar to time

    I have a column StartTime type varchar stors data as 3:59:00 format . I want to write an select query which add 6 in hour and display records. Can any body help
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Have you tried the time function?
    Code:
    select time(columnName) from tableName

    Comment

    Working...