Como obter e formatar a data atual em Consulta (SELECT) existente na linguagem de Manipulação de Dados (DML) do Azure SQL/SQL Server
This T-SQL code uses the CONVERT function to format the current date in British-style date format (DD/MM/YYYY). I'll explain each part of the code:
SELECT CONVERT( varchar, GETUTCDATE(), 103 ) AS Formatted Date
Therefore, the code returns the current date and time formatted as a British-style string (DD/MM/YYYY). The result is stored in the "FormattedDate" column. This query is useful when you need to display the current date in a specific format.
Data Scientist and Consultant for Digital and Analytics Solutions
@fabioms