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

Top answer 1 of 4
4
try use PARSE t-sql function
SELECT PARSE(timestamp AS date USING 'Ru-RU') from table

2 of 4
1
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)
Convert string MMDDYYYY to a date – SQLServerCentral Forums
I am not sure why you wouldn't do this in SSIS - it can be done using a derived column transformation quite easily and insures that the data is in a standard format that SQL will process as a date automatically. In the connection manager for that field - define it as a string with 10 characters ... More on sqlservercentral.com
convert string to date
Based on your question, I believe insta_map_date is a varchar field. and based on the source data sample you provided, the date format matches with ISO8601. So you can use 126 or 127 as the style while converting to datetime. Try the following. ... For more information about SQL Server Date ... More on learn.microsoft.com
Convert Text to Date DataType – SQLServerCentral Forums
I need this because i am using ... to be in Date DT. ... SSC Eights! ... yes i can do that but,how will sql know that my text is in dd/mm/yyyy format and not in mm/dd/yyyy or smthing else. ... yes i can do that but,how will sql know that my text is in dd/mm/yyyy for and not in mm/dd/yyyy or smthing else. ... The third value in the convert statement tells SQL Server the string value of the ... More on sqlservercentral.com
How do I format a date or convert a date to a specific string?
the default format for the dates in my database is MM/DD/YYYY (01/02/2021) Except it isn't. All date & time data types in SQL Server are stored as binary data, not as strings. They have no "format" - formatting is done by the client application (yes, even SSMS). When you enter a date like 01/02/2021 in an application, the application or SQL Server is making a guess about what you mean based on regional settings and possibly other factors. Unless you're storing your dates as strings. If you're doing that, we gotta have a chat. But like u/IHeartBadCode said, you really need a date table to do this kind of lookup/translation, not code embedded in a query. More on reddit.com
Videos
04:18
Convert Datetime into String | Datetime to String conversion in ...
09:30
Convert numbers and dates into strings in SQL Server using the ...
12:15
Converting a String to Date in SQL | CAST | CONVERT | TRY_CAST ...
How to Correctly Convert String to Date in SQL
01:18
How to Convert a VARCHAR Date String to DATETIME in SQL ...
W3Schools
w3schools.com › sql › func_mysql_str_to_date.asp
MySQL STR_TO_DATE() Function
String Functions: ASCII CHAR_LENGTH ... STR_TO_DATE SUBDATE SUBTIME SYSDATE TIME TIME_FORMAT TIME_TO_SEC TIMEDIFF TIMESTAMP TO_DAYS WEEK WEEKDAY WEEKOFYEAR YEAR YEARWEEK Advanced Functions: BIN BINARY CASE CAST COALESCE CONNECTION_ID CONV CONVERT CURRENT_USER DATABASE IF IFNULL ISNULL LAST_INSERT_ID NULLIF SESSION_USER SYSTEM_USER USER VERSION SQL Server Functions · String Functions: ...
SQLServerCentral
sqlservercentral.com › forums › topic › convert-string-mmddyyyy-to-a-date
Convert string MMDDYYYY to a date – SQLServerCentral Forums
December 20, 2018 - I am not sure why you wouldn't do this in SSIS - it can be done using a derived column transformation quite easily and insures that the data is in a standard format that SQL will process as a date automatically. In the connection manager for that field - define it as a string with 10 characters (then end result you will want).
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 685628 › convert-string-to-date
convert string to date - Microsoft Q&A
January 6, 2022 - Based on your question, I believe insta_map_date is a varchar field. and based on the source data sample you provided, the date format matches with ISO8601. So you can use 126 or 127 as the style while converting to datetime. Try the following. ... For more information about SQL Server Date Formats, refer : https://learn.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-ver15
SQL Server Tutorial
sqlservertutorial.net › home › sql server system functions › convert string to datetime
Convert String to Datetime in SQL Server
April 11, 2020 - In this tutorial, you will learn how to convert a string to a datetime in SQL Server using the CONVERT() and TRY_CONVERT() function.
Microsoft Learn
learn.microsoft.com › en-us › sql › t-sql › functions › cast-and-convert-transact-sql
CAST and CONVERT (Transact-SQL) - SQL Server | Microsoft Learn
For more information, see Nondeterministic conversion of literal date strings into DATE values. Starting with SQL Server 2012 (11.x), when using supplementary character (SC) collations, a CAST operation from nchar or nvarchar to an nchar or nvarchar type of smaller length won't truncate inside a surrogate pair.
Edureka Community
edureka.co › home › community › categories › database › sql server string to date conversion
SQL Server string to date conversion | Edureka Community
September 14, 2022 - SQL Server string to date conversion · Why is the object value not updating in MongoDB? Nov 26, 2024 · DFS PUT Command gives error on Windows Jul 22, 2024 · what kind of a nosql store is azure table storage Dec 15, 2023 · Cannot connect to SQL server Nov 10, 2023 ·
Teradata
support.teradata.com › community
- convert string to date format - Community
August 9, 2023 - Loading · Skip to page content
Sqltutorial
sqltutorial.net › sql-convert-string-to-date.html
SQL convert string to date – SQL Tutorial
You can adjust the style code based on your input string’s format. ... DECLARE @DateString VARCHAR(20) = '2023-11-29'; DECLARE @DateValue DATE; SET @DateValue = CAST(@DateString AS DATE); SELECT @DateValue AS ConvertedDate; This example demonstrates how to use the CAST function to convert ...
W3Schools
w3schools.com › sql › func_sqlserver_convert.asp
SQL Server CONVERT() Function
String Functions: ASCII CHAR_LENGTH ... STR_TO_DATE SUBDATE SUBTIME SYSDATE TIME TIME_FORMAT TIME_TO_SEC TIMEDIFF TIMESTAMP TO_DAYS WEEK WEEKDAY WEEKOFYEAR YEAR YEARWEEK Advanced Functions: BIN BINARY CASE CAST COALESCE CONNECTION_ID CONV CONVERT CURRENT_USER DATABASE IF IFNULL ISNULL LAST_INSERT_ID NULLIF SESSION_USER SYSTEM_USER USER VERSION SQL Server Functions · String Functions: ...
Oracle
docs.oracle.com › en › database › oracle › oracle-database › 18 › sqlrf › REPLACE.html
SQL Language Reference
January 4, 2023 - REPLACE lets you substitute one string for another as well as to remove character strings. ... Appendix C in Oracle Database Globalization Support Guide for the collation determination rules, which define the collation REPLACE uses to compare characters from char with characters from search_string, and for the collation derivation rules, which define the collation assigned to the character return value of this function
W3Schools
w3schools.com › sql › sql_wildcards.asp
SQL Wildcard Characters
String Functions: ASCII CHAR_LENGTH ... STR_TO_DATE SUBDATE SUBTIME SYSDATE TIME TIME_FORMAT TIME_TO_SEC TIMEDIFF TIMESTAMP TO_DAYS WEEK WEEKDAY WEEKOFYEAR YEAR YEARWEEK Advanced Functions: BIN BINARY CASE CAST COALESCE CONNECTION_ID CONV CONVERT CURRENT_USER DATABASE IF IFNULL ISNULL LAST_INSERT_ID NULLIF SESSION_USER SYSTEM_USER USER VERSION SQL Server Functions · String Functions: ...
SQLServerCentral
sqlservercentral.com › forums › topic › convert-text-to-date-datatype
Convert Text to Date DataType – SQLServerCentral Forums
August 14, 2012 - Will you advise against using new non-standard FORMAT function in SQL2012? 2. CONVERT() is an expensive string formatting function, with all those old Sybase options; substring and concatenation are cheap, simple and fast. Fast? Can you prove, please? So far all test ever been done on this did show no difference. At the end, to convert string datatype into date datatype, engine uses CASTing in both cases!
SQL Tutorial
sqltutorial.org › home › sql date functions › sql convert string to date functions
SQL Convert String to Date Functions: CAST() and TO_DATE()
April 4, 2020 - For example, to convert the string '10 Aug 2018' to a date value, you use the following statement: SELECT TO_DATE( '10 Aug 2018', 'DD MON YYYY' ) FROM dual; Code language: SQL (Structured Query Language) (sql) Notice that the date format must be corresponding to the date string as specified ...