Search
 
SCRIPT & CODE EXAMPLE
 

SQL

convert date to datetime sql

-- 2 ways 
SELECT CONVERT(datetime, '2021-01-01');
SELECT CAST('2021-01-01' AS datetime);
Comment

sql convert varchar to date

SELECT convert(datetime, '09/10/2019', 101);
Comment

sql convert varchar to date

SELECT convert(datetime, '09/10/2019', 101);
Comment

cast datetime to date in sql

SELECT CONVERT(date, getdate());
Comment

sql convert datetime

declare @Existingdate datetime
Set @Existingdate=GETDATE()
Select CONVERT(varchar,@Existingdate,103) as [DD/MM/YYYY]
Comment

sql cast date to 103

cast date to 103
Comment

PREVIOUS NEXT
Code Example
Sql :: sql find table by name 
Sql :: dba_dependencies 
Sql :: how to find special characters in sql 
Sql :: oracle nvl 
Sql :: how to view created temporary tables in mysql 
Sql :: how to delete a table in mysql 
Sql :: delete row by id mysql 
Sql :: mysql select date from datetime 
Sql :: SQL Duplicates by Composite 
Sql :: sql server query database space available 
Sql :: SQL CASE With ELSE in SQL 
Sql :: Syntax error or access violation: 1701 Cannot truncate a table referenced in a foreign key constraint 
Sql :: get initials name in sql 
Sql :: sqlite3 update select 
Sql :: oracle concat datetime 
Sql :: postgresql linux password 
Sql :: install mysql 5.7 ubuntu 20.04 
Sql :: sql power function 
Sql :: oracle default date format 
Sql :: SQL Updating a View 
Sql :: mysql remove unique key 
Sql :: oracle create table as select 
Sql :: error 1054 mysql 
Sql :: sql count more than 1 
Sql :: remove last characters in mysql 
Sql :: python sqlite3 search 
Sql :: creating a view in sql 
Sql :: PostgreSQL: To_Number function 
Sql :: postgresql héritage 
Sql :: mysql select case insensitive 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =