datetime format sql code example
Example 1: insert date sql
INSERT INTO FOO (xpto) VALUES(TO_DATE('17/12/2015', 'DD/MM/YYYY'));
Example 2: SQL Date Format
SELECT FORMAT(dbo.column, 'M/dd/yyyy')
Example 3: date datatype in sql
DATE - format YYYY-MM-DD
DATETIME - format: YYYY-MM-DD HH:MI:SS
TIMESTAMP - format: YYYY-MM-DD HH:MI:SS
YEAR - format YYYY or YY
Example 4: sql date format
default date format of my sql - YYYY-MM-DD