Question : SQL DateTime Format issue

Why is when I use my code below, my ApptTime comes out like 09:00:00, yet when I use SELECT CONVERT(varchar(5), GETDATE(), 108) I get 11:57?

I want to return only the hh:mm and leave off the :ss. I don't care about the seconds, only the hh and mm.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
SET NOCOUNT ON

SELECT 
	a.AppointmentsId,
	ISNULL(Convert(VarChar(20), a.ApptStart, 101),'')as ApptDate,
	ISNULL(Convert(VarChar(20), a.ApptStart, 108),'')as ApptTime,
	res.listname AS ApptResource,
	fac.listname AS ApptFacility,
	apt.Name AS AppointmentType,
	isnull(aps.description, '') + ' ' + isnull(a.status, '') as ApptStatus

FROM
	Appointments a
	LEFT JOIN doctorfacility res ON a.ResourceID = res.doctorfacilityID
	LEFT JOIN doctorfacility fac ON a.facilityID = fac.doctorfacilityID
	LEFT JOIN appttype apt ON a.appttypeID = apt.appttypeID
	LEFT JOIN medlists aps ON a.apptStatusMID = aps.medlistsID
WHERE
	a.OwnerId = '48'

Answer : SQL DateTime Format issue

Than why don't you change it
From:
ISNULL(Convert(VarChar(20), a.ApptStart, 108),'')as ApptTime,

To:
ISNULL(Convert(VarChar(5), a.ApptStart, 108),'')as ApptTime,
Random Solutions  
 
programming4us programming4us