The FORMAT function in SQL Server - extracting single or multiple parts of a datetime

preview_player
Показать описание
In this video, we will be extracting parts of dates and times using the FORMAT function.
My SQL Server Udemy courses are:
----
My Excel for PC courses are:
----
The FORMAT function in SQL Server is fairly similar to the FORMAT function in Excel. However, there are a few differences.
Thirdly, in Excel you can use 'mm' for months, and 'hh' for hours between 0 and 23. However, in SQL Server you need to use 'MM' for months, and 'hh' for hours between 0 and 11, and 'HH' for hours between 0 and 23.
Рекомендации по теме
Комментарии
Автор

Sir I m getting confused in 'm'. How u r using it to get minutes and month.

deadkachu
welcome to shbcf.ru