Try like this...

select CONVERT (varchar(10), getdate(), 103) AS [DD/MM/YYYY]

For more info : http://www.sql-server-helper.com/tips/date-formats.aspx

Answer from AmanKumar on Stack Overflow
Discussions

How to change date format from YYMMDD to DD-MM-YYYY
Hi Team, Can any one help to convert date format YYMMDD to DD-MM-YYYY in a sql script. In data I have a date like 220504 which I want to convert into 04-05-2022. I have tried below given way but i am getting error. c… More on forums.sqlteam.com
🌐 forums.sqlteam.com
0
0
July 10, 2023
sql server - How to get a date in YYYY-MM-DD format from a TSQL datetime field? - Stack Overflow
How do I retrieve a date from SQL Server in YYYY-MM-DD format? I need this to work with SQL Server 2000 and up. Is there a simple way to perform this in SQL Server or would it be easier to convert it More on stackoverflow.com
🌐 stackoverflow.com
date yyyy-dd-mm in SQL 2016? – SQLServerCentral Forums
It will be interpreted as yyyy-dd-MM for datetime using the British language in both versions. Perhaps you were using a different data type, like date or datetime2, before? ... Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does. Larnu.uk ... Jonathan, Is this a change in SQL2016? Because the format ... More on sqlservercentral.com
🌐 sqlservercentral.com
June 24, 2019
Converting date format in sqlserver
So, you do not store date in SQL by any format - only displays based on the local set of your server. If you want to show dd/mm/yyyy, use the Format method or Convert / Cast on the Date field to change the format. More on learn.microsoft.com
🌐 learn.microsoft.com
4
0
🌐
Microsoft Learn
learn.microsoft.com › en-us › sql › t-sql › functions › format-transact-sql
FORMAT (Transact-SQL) - SQL Server | Microsoft Learn
DECLARE @d AS DATE = GETDATE(); SELECT FORMAT(@d, 'dd/MM/yyyy', 'en-US') AS 'Date', FORMAT(123456789, '###-##-####') AS 'Custom Number';
🌐
MSSQLTips
mssqltips.com › home › sql date format examples using convert function
SQL Date Format Examples using SQL CONVERT Function
September 26, 2025 - The format is yyyy-mm-dd hh:mm:ss:nnn. ... The below queries use the GETDATE() function if you want to return the current date and time. Format the date or time without dividing characters and concatenate the date and time string: Another option ...
🌐
SQLTeam
forums.sqlteam.com › other sql server topics
How to change date format from YYMMDD to DD-MM-YYYY - Other SQL Server Topics - SQLTeam.com Forums
July 10, 2023 - Hi Team, Can any one help to convert date format YYMMDD to DD-MM-YYYY in a sql script. In data I have a date like 220504 which I want to convert into 04-05-2022. I have tried below given way but i am getting error. c…
🌐
SQLServerCentral
sqlservercentral.com › forums › topic › date-yyyy-dd-mm-in-sql-2016
date yyyy-dd-mm in SQL 2016? – SQLServerCentral Forums
June 24, 2019 - Languages are there for a reason, and they do have impacts on "simple" things such as the date here. The important part is that you code appropriately and therefore when using dates you should be using an ambiguous format. For SQL Server, that's yyyyMMdd and yyyy-MM-ddThh:mm:ss.sssssss (regardless ...
Find elsewhere
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1425205 › converting-date-format-in-sqlserver
Converting date format in sqlserver - Microsoft Q&A
So, you do not store date in SQL by any format - only displays based on the local set of your server. If you want to show dd/mm/yyyy, use the Format method or Convert / Cast on the Date field to change the format.
🌐
MSSQLTips
mssqltips.com › home › format sql server dates with format function
Format SQL Server Dates with FORMAT Function
October 31, 2025 - With the SQL Server FORMAT function we do not need to know the format number to use to get the right date format we want, we can just specify the display format we want and we get that format. Use the FORMAT function to format the date and time data types from a date column (date, datetime, datetime2, smalldatetime, datetimeoffset, etc. data type) in a table or a variable such as GETDATE() To get DD/MM/YYYY use SELECT FORMAT (getdate(), ‘dd/MM/yyyy ‘) as date
🌐
SQL Server Guides
sqlserverguides.com › sql-server-date-formatting
SQL Server Date Formatting - SQL Server Guides
June 11, 2025 - When accepting date inputs from users, always use parameterized queries to avoid SQL injection and ensure proper date parsing: DECLARE @UserDate DATETIME = '2025-06-10'; SELECT FORMAT(@UserDate, 'MM/dd/yyyy', 'en-US') AS 'Formatted Date';
Top answer
1 of 3
1

Hi @Raj D ,

Here is how to convert text as a DATE data type.
After that you can format it at will by using CONVERT() or FORMAT() functions.

SQL

-- DDL and sample data population, start  
DECLARE @processdata TABLE ([ProcessDate] NVARCHAR(255) NOT NULL);  
INSERT @processdata VALUES  
('Sat May 30 2020 14:19:55 GMT-0700 (Pacific Daylight Time)'),  
('Sat May 30 2020 14:19:55');  
-- DDL and sample data population, end  

  
DECLARE @separator CHAR(1) = SPACE(1);  
  
SELECT *   
 , TRY_CAST('' +   
   REPLACE([ProcessDate], @separator, '') +   
   '' AS XML)  
 .value('concat((/root/r[4]/text())[1],"-", (/root/r[2]/text())[1],"-", (/root/r[3]/text())[1])', 'DATE') AS Result  
FROM @processdata;  

;WITH rs AS  
(  
 SELECT *   
 , TRY_CAST('' +   
   REPLACE([ProcessDate], @separator, '') +   
   '' AS XML)  
 .value('concat((/root/r[4]/text())[1],"-", (/root/r[2]/text())[1],"-", (/root/r[3]/text())[1])', 'DATE') AS Result  
 FROM @processdata  
)  
SELECT *   
 , TRY_CONVERT(VARCHAR(10), rs.result, 101) AS [Converted]  
 , FORMAT(rs.result, 'MM/dd/yyyy') AS [Formatted]  
FROM rs;  

Output

+-----------------------------------------------------------+------------+  
|                        ProcessDate                        |   Result   |  
+-----------------------------------------------------------+------------+  
| Sat May 30 2020 14:19:55 GMT-0700 (Pacific Daylight Time) | 2020-05-30 |  
| Sat May 30 2020 14:19:55                                  | 2020-05-30 |  
+-----------------------------------------------------------+------------+  
2 of 3
1
SELECT try_convert(date, substring(ProcessDate, 5, 11))
FROM  @processdata

I am here assuming that month names are always three letters and dates are always two digits. To keep it simple, I'm ignoring the time part.

You should always store date and time values in proper data types; you should never store them as strings. Never!

🌐
DB Vis
dbvis.com › thetable › the-ultimate-guide-to-the-sql-server-date-format
The Ultimate Guide to the SQL Server Date Format
October 23, 2024 - Use clear and explicit format strings to avoid confusion. For example, prefer yyyy-MM-dd over formats like yy-MM-dd to limit ambiguity. When possible, use the ISO 8601 format for date and time literals, as it is unambiguous and widely accepted. In this guide, you learned more about formatting DATE in SQL Server.
🌐
SQLServerCentral
sqlservercentral.com › forums › topic › convert-date-to-mmddyyyy
Convert date to MMDDYYYY – SQLServerCentral Forums
February 9, 2016 - SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies". ... SSC Eights! ... I need to export data out to a txt file with the date format of MMDDYYYY - the source date is a datetime (2015-09-01 00:00:00.000) format - below is the solution I have:
🌐
Google
discuss.google.dev › google cloud › database
How to Change Date Format to dd/mm/yyyy (Example: 28/10/2022) - Database - Google Developer forums
October 19, 2022 - I’m a SQL Server Express 2017 user. I want to ask, how do I change the date format in the system (not in SQL) to dd/mm/yyyy (Example: 28/10/2022)? If using the Windows Operating System, this can be done in regional settings: But, in Cloud SQL I don’t know how.
🌐
Microsoft Learn
learn.microsoft.com › en-us › sql › t-sql › data-types › date-transact-sql
date (Transact-SQL) - SQL Server | Microsoft Learn
The date data type was introduced ... for the date data type. [m]m, dd, and [yy]yy represent month, day, and year in a string with slash marks (/), hyphens (-), or periods (.) as separators....
🌐
Spiceworks
community.spiceworks.com › programming & development › databases & queries
Changinf the date format in sql server like YYMMDD - Databases & Queries - Spiceworks Community
April 3, 2008 - I am using SELECT CONVERT(VARCHAR(10),GETDATE(),112) it is giving 20080403; but i want result in YYMMDD format. i’ve tried one more command i.e. SELECT CAST(DATEPART(yy,GETDATE()) AS VARCHAR(20)),but it is again giving m…
🌐
Quest Blog
blog.quest.com › home › various ways to use the sql convert date function
Various ways to use the SQL CONVERT date function
April 26, 2024 - In the below SQL query, we convert ... datetime = '2019-12-31 14:43:35.863'; Select CONVERT(varchar,@Inputdate,1) as [mm/dd/yy], CONVERT(varchar,@Inputdate,101) as [mm/dd/yyyy]...