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 MM/dd/yyyy format

SELECT CONVERT(VARCHAR(11), GETDATE(), 101) AS [MM/DD/YYYY]
Comment

sql convert date to string yyyy-mm-dd

select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */
Comment

sql date format dd-mm-yyyy

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

PREVIOUS NEXT
Code Example
Sql :: how to check table exists or not in postgresql 
Sql :: zsh-syntax-highlighting zsh-autosuggestions 
Sql :: call function sql oracle 
Sql :: import mysql dump command line 
Sql :: unsigned int in mysql 
Sql :: mysql group by range 
Sql :: mysql milliseconds 
Sql :: mysql backup table 
Sql :: postgres list users and roles 
Sql :: plpgsql create function 
Sql :: remove space in sql server 2012 
Sql :: how to insert json value in mysql 
Sql :: check if value is equal to something sql 
Sql :: oracle number to percentage 
Sql :: sort by sql 
Sql :: getdate function in postgresql 
Sql :: mysql check date range 
Sql :: update one column from another column in same table 
Sql :: sql paging query 
Sql :: Add a column with a default value to an existing table in SQL Server 
Sql :: xampp mysql version 
Sql :: oracle partition table row count 
Sql :: ERROR 3948 (42000): Loading local data is disabled; this must be enabled on both the client and server sides 
Sql :: osx stop mysql service 
Sql :: opening xampp mysql in cmd ubuntu 
Sql :: how to import pymysql through jupyter notebook for windows 
Sql :: set all auto_increment values in sql 
Sql :: oracle dependencies table 
Sql :: sql alter table order by 
Sql :: invalid column name sql 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =