I'm using
convert(varchar(20), getdate(), 112)
to convert getdate() to yyyymmdd format (ISO format), which works great. Now I need to do something similiar to get the time in hhmm format. How can I achieve this?
Example: 12:10 pm should look like 1210, 3:43 pm should look like 1543.