Check out example codes for "CONVERT time string into 12 hours in sql". It will help you in understanding the concepts better.

Code Example 1

declare @t time
set @t = '14:40'

select CONVERT(varchar(15),@t,100)

Learn ReactJs, React Native from akashmittal.com