Search
 
SCRIPT & CODE EXAMPLE
 

SQL

SQL query to convert DD/MM/YYYY to YYYY-MM-DD

SELECT CONVERT(varchar(10), CONVERT(date, '13/12/2016', 103), 120)
Comment

convert date to dd/mm/yyyy sql

select CONVERT(char(10), GetDate(),103)
/* 30/06/2021 */
Comment

sql date format dd-mm-yyyy

SELECT FORMAT (getdate(), 'dd-MM-yy') as date
GO
Comment

sql server date format yyyy-MM-ddThh:mm:ss

select REPLACE(convert(varchar, getdate() , 20), ' ', 'T')  
Comment

convert dd/mm/yyyy to yyyy-mm-dd in sql server

set dateformat dmy;
select PersonalDetails_DOB
    ,convert(nvarchar(10), cast(PersonalDetails_DOB as datetime), 102) as ANSI_DOB
    ,convert(nvarchar(10), cast(PersonalDetails_DOB as datetime), 120) as ODBC_DOB
from Users;
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle create table as select 
Sql :: oracle list primary key 
Sql :: database stuck on restoring 
Sql :: group by clause with join in sql 
Sql :: mysql if else 
Sql :: docker add mysql to image 
Sql :: sql full outer join with where clause 
Sql :: sql find leading space 
Sql :: sql count more than 1 
Sql :: generate random & unique mysql string 
Sql :: postgresql remove duplicate rows 2 columns 
Sql :: move files from one folder to another in sql server 
Sql :: sql inner join 
Sql :: SQL Modify Column in a Table -SQL Server 
Sql :: identity syntax in sql 
Sql :: sql get month and year from date 
Sql :: sql output select 
Sql :: remove root password mysql 
Sql :: how to check user grant in mysql 
Sql :: An error occurred while installing mysql (2.9.1), and Bundler cannot continue 
Sql :: local database sql 
Sql :: to show sp in sql server 
Sql :: change database postgres 
Sql :: case condition in mongodb 
Sql :: mysql update 
Sql :: oracle job class 
Sql :: SQL INNER JOIN With Three Tables 
Sql :: where clause for clob in oracle 
Sql :: inser into example 
Sql :: Write a PL/SQL to print even numbers upto 100. 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =