SELECT Appt_table.id, Appt_table.case_no, Appt_table.appt_time,; Appt_table.appt_duration, Appt_table.cliniccode, Appt_table.remark,; Appt_table.appt_time+ Appt_table.appt_duration*60 as end_time; FROM appt_table Appt_table; WHERE Appt_table.appt_time BETWEEN ?weekday1 AND ?weekday2; ORDER BY Appt_table.appt_time, Appt_table.cliniccodeI try to set the field "END_TIME" to datetime rather than B(2), but there is an error say I need to convert to other datatype?!