Home >Database >SQL >What are the SQL date format conversion functions?

What are the SQL date format conversion functions?

coldplay.xixi
coldplay.xixiOriginal
2020-07-03 11:33:4714034browse

SQL date format conversion functions are: 1. [Select CONVERT(GETDATE(), 23)] formats the current date into [year-month-day] format; 2. [Select CONVERT(GETDATE()) , 8] Format the current time into [hour: minute: second] format.

What are the SQL date format conversion functions?

sql date format conversion functions are:

1. Format the current date into [year-month-day] format, Select CONVERT(varchar(100), GETDATE(), 23).

What are the SQL date format conversion functions?

2. Format the current time into [hour:minute:second] format, Select CONVERT(varchar(100), GETDATE(), 8).

What are the SQL date format conversion functions?

3 , Format the current date and time into [Year-Month-Day Hour:Minute:Second] format, Select CONVERT(varchar(100), GETDATE(), 20).

What are the SQL date format conversion functions?

4. Format the current date into [day-month-year] format, Select CONVERT(varchar(100), GETDATE(), 105).

What are the SQL date format conversion functions?

5 , format the current date into [year/month/day] format, Select CONVERT(varchar(100), GETDATE(), 111). Complete the rendering.

What are the SQL date format conversion functions?

Related learning recommendations: SQL video tutorial

The above is the detailed content of What are the SQL date format conversion functions?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn