You have to decide which input lines the user will use as a parameter, and then convert them and combine them the way you want, unless it is a Datetime, it doesnβt matter what source format it had, you can use it between -condition.
E. G. the user is from Europe and uses "DD.MM.YY" and "hh: mm" as an input parameter, I would convert the concatenation as follows:
WHERE dateCol between convert(DATETIME, convert(char(11), convert(DATETIME, '01.06.14', 4), 16) || ' ' || '00:00', 8) AND convert(DATETIME, convert(char(11), convert(DATETIME, '01.07.14', 4), 16) || ' ' || '16:00', 8)
source share