datetime convert not seconds

How do I convert datetime to 12.4. 21:50?
I.e. not year and not seconds.
Who is Participating?
DBAduck - Ben MillerConnect With a Mentor Principal ConsultantCommented:
You could look at the CONVERT statement and use something like in here:

If you convert the date to just a date and then take a LEFT(@string, 5) you could get the date and then do the same for the time.  
The above post would work as well.
there is no built in way of doing it
you can try

select datepart(day, date_column) + '.' + datepart(month, date_column) + '. ' + datepart(hour, date_column) + ':' + datepart(minute, date_column)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.