Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)
Can anyone tell me how to convert date into dd-mm-yyyy format in the SQL server?

1 Answer

0 votes
by (119k points)

We can use CONVERT function to convert the date from one format to another. Here is the statement to convert the date into dd-mm-yyyy format in SQL server:

SELECT CONVERT (varchar, getdate(), 105);

You can learn more about date format and date functions from this SQL tutorial by Intellipaat

You can learn in-depth about SQL statements, queries and become proficient in SQL queries by enrolling in our industry-recognized SQL online course.

Related questions

0 votes
2 answers
0 votes
1 answer
asked Jul 25, 2019 in Python by Eresh Kumar (45.3k points)
0 votes
1 answer
asked Dec 4, 2020 in SQL by Appu (6.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...