Home > Database > SQL > body text

What are the SQL date format conversion functions?

coldplay.xixi
Release: 2020-07-03 11:33:47
Original
13994 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template