I have faced the same problem a week ago. The problem is with the time zone setting. Specify in other formats like mm/dd/yyyy (usually works).
Specifying the date as 30/12/2013 resulted in the error for me. However, specifying it as mm/dd/yyyy format worked.
If you need to convert your input the you can try looking into the CONVERT
method. Syntax is
CONVERT(VARCHAR,@your_date_Value,103)
CONVERT(VARCHAR, '12/30/2013', 103)
The finishing 103 is the datetime format.
Refer this link for conversion formats and further reading. https://www.w3schools.com/sql/func_sqlserver_convert.asp
Related Posts:
- Inserting multiple rows in a single SQL query? [duplicate]
- SQL query to select dates between two dates
- T-SQL split string
- How do I perform an IF…THEN in an SQL SELECT?
- Conversion of a varchar data type to a datetime data type resulted in an out-of-range value in SQL query
- Each GROUP BY expression must contain at least one column that is not an outer reference
- SQL Server : Arithmetic overflow error converting expression to data type int
- How to calculate percentage with a SQL statement
- What is the meaning of the prefix N in T-SQL statements and when should I use it?
- Query error with ambiguous column name in SQL
- Sql Server string to date conversion
- Keeping it simple and how to do multiple CTE in a query
- Why use a READ UNCOMMITTED isolation level?
- DateTime2 vs DateTime in SQL Server
- Conversion of a varchar data type to a datetime data type resulted in an out-of-range value in SQL query
- How to group by month from Date field using sql
- How can I get column names from a table in SQL Server?
- Is there a combination of “LIKE” and “IN” in SQL?
- How to get a date in YYYY-MM-DD format from a TSQL datetime field?
- How to convert SQL Server’s timestamp column to datetime format
- MS SQL compare dates?
- MS SQL compare dates?
- Get size of all tables in database
- Using RegEx in SQL Server
- How to format a numeric column as phone number in SQL
- How do I format a number with commas in T-SQL?
- SQL: IF clause within WHERE clause
- SQL datetime compare
- To add server using sp_addlinkedserver
- Comma separated results in SQL
- Selecting COUNT(*) with DISTINCT
- What do Clustered and Non-Clustered index actually mean?
- Self Join to get employee manager name
- How do I UPDATE from a SELECT in SQL Server?
- SQL query to get the employee name and their manager name from the same table
- How can I do an UPDATE statement with JOIN in SQL Server?
- Function to Calculate Median in SQL Server
- Update multiple columns in SQL
- How do I escape a single quote in SQL Server?
- T-SQL split string based on delimiter
- What is the use of GO in SQL Server Management Studio & Transact SQL?
- SQL Query with SUM with Group By
- IDENTITY_INSERT is set to OFF – How to turn it ON?
- SQL update from one Table to another based on a ID match
- An attempt was made to access a socket in a way forbidden by its access permissions
- How to drop all tables from a database with one SQL query?
- Optimistic vs. Pessimistic locking
- Column name or number of supplied values does not match table definition
- The target principal name is incorrect. Cannot generate SSPI context
- Query comparing dates in SQL
- The EXECUTE permission was denied on the object ‘xxxxxxx’, database ‘zzzzzzz’, schema ‘dbo’
- BCP error “Unable to open BCP host data-file”
- How can I clone an SQL Server database on the same server in SQL Server 2008 Express?
- Get day of week in SQL Server 2005/2008
- Each GROUP BY expression must contain at least one column that is not an outer reference
- SQL Server : error converting data type varchar to numeric
- How to find sum of multiple columns in a table in SQL Server 2005?
- Check if table exists in SQL Server
- Operand type clash: int is incompatible with date + The INSERT statement conflicted with the FOREIGN KEY constraint
- How can I truncate a datetime in SQL Server?
- CREATE TABLE IF NOT EXISTS equivalent in SQL Server
- SQL Server String or binary data would be truncated
- How to parse XML data in SQL server table
- What is the equivalent of ‘describe table’ in SQL Server?
- How do I query for all dates greater than a certain date in SQL Server?
- Error converting data type varchar to float
- What is the Oracle equivalent of SQL Server’s IsNull() function?
- ClassNotFoundException – com.microsoft.jdbc.sqlserver.SQLServerDriver
- The SELECT permission was denied on the object ‘Users’, database ‘XXX’, schema ‘dbo’
- How do you open an SDF file (SQL Server Compact Edition)?
- What is the maximum characters for the NVARCHAR(MAX)?
- Conversion failed when converting the varchar value ‘simple, ‘ to data type int
- Must declare the scalar variable
- Exclude a column using SELECT * [except columnA] FROM tableA?
- Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 4 (Year)
- Conversion of a datetime2 data type to a datetime data type results out-of-range value
- Trouble Connecting to sql server Login failed. “The login is from an untrusted domain and cannot be used with Windows authentication”
- Difference between database and schema
- ‘Microsoft.ACE.OLEDB.16.0’ provider is not registered on the local machine.
- How do I fix the multiple-step OLE DB operation errors in SSIS?
- SQL Server: Error converting data type nvarchar to numeric
- SQL – WHERE (X, Y) IN (A, B)
- SQL Server Linked Server Example Query
- SQL “select where not in subquery” returns no results
- Format number as percent in MS SQL Server
- SQL Server dynamic PIVOT query?
- How to write a foreach in SQL Server?
- I want to use CASE statement to update some records in sql server 2005
- How to connect to a local database in SQL Server Management Studio?
- How to calculate age (in years) based on Date of Birth and getDate()
- Text was truncated or one or more characters had no match in the target code page including the primary key in an unpivot
- How can I group by date time column without taking time into consideration
- What are named pipes?
- SHOWPLAN permission denied in database ‘tempdb’. in sql server 2008
- “select * into table” Will it work for inserting data into existing table
- SUM OVER PARTITION BY
- Update query using Subquery in Sql Server
- Using Excel VBA to run SQL query
- Pad a string with leading zeros so it’s 3 characters long in SQL Server 2008
- What is tableName.* in SQL