try use PARSE t-sql function
SELECT PARSE(timestamp AS date USING 'Ru-RU') from table

try use PARSE t-sql function
SELECT PARSE(timestamp AS date USING 'Ru-RU') from table

SQL Server is actually pretty flexible on converting date/times without a format. So, if you want to convert to a date/time, this works:
select convert(datetime, '06.07.2021 00:00:00')
If you are only looking at the date, though, you might want to limit to the first 10 characters. If you are certain that all the strings have valid dates, you can use 104 to convert the value:
select cast(date, left(datetime, 10), 104)
sql server convert date to string MM/DD/YYYY - Stack Overflow
How do I format a date or convert a date to a specific string?
Convert Text to Date DataType โ SQLServerCentral Forums
sql server - How to convert a datetime to string in T-SQL - Stack Overflow
Videos
That task should be done by the next layer up in your software stack. SQL is a data repository, not a presentation system
You can do it with
CONVERT(VARCHAR(10), fmdate(), 101)
But you shouldn't
select convert(varchar(10), fmdate, 101) from sery
101 is a style argument.
Rest of 'em can be found here.
CAST and CONVERT (Transact-SQL) - Date and time styles
say the default format for the dates in my database is MM/DD/YYYY (01/02/2021).
What is the syntax to convert this to 'FY 2021 Q3'?
Any insight or help are appreciative.
The following query will get the current datetime and convert into string. with the following format yyyy-mm-dd hh:mm:ss(24h)
SELECT convert(varchar(25), getdate(), 120)
- SQLFiddle Demo
- SQL Server Date Formats
There are many different ways to convert a datetime to a string. Here is one way:
SELECT convert(varchar(25), getdate(), 121) โ yyyy-mm-dd hh:mm:ss.mmm
See Demo
Here is a website that has a list of all of the conversions:
How to Format datetime & date in SQL Server