Let's start with an example:
SELECT FORMAT (getdate(), 'dd-MM-yy') as dateGO
The format will be as follows:
If this was run for March 21, 2018 the output would be: 21-03-18.
Let's try another one:
SELECT FORMAT (getdate(), 'hh:mm:ss') as timeGO
The format will be as follows:
The output will be: 02:48:42.