Scenario: I have 1 field REQDATE. 2 input box 1 date field and 1 time field. I have no issue pulling the date field, but I need to convert REQDATE to a time data. Format should be 12 HR format not 24 HR format. I have the TSQL below, but it is not giving the correct result I want.
Expected Result: 11:30 AM or 1:30 PM
TSQL: SELECT convert(time, GETDATE(), 101 ) as x
Please advice.
Thanks.
Expected Result: 11:30 AM or 1:30 PM
TSQL: SELECT convert(time, GETDATE(), 101 ) as x
Please advice.
Thanks.
Comment