Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Date format in PostgreSQL

SELECT Orderdetails,OrderDate as ExistingDateformat,
to_char(OrderDate,'DD-MM-YYYY') As DDMMYYYY,
to_char(OrderDate,'DD-MM-YY') As DDMMYY,
to_char(OrderDate,'DD.MM.YY') As "DD.MM.YY",
to_char(OrderDate,'MM/DD/YYYY') As "MM/DD/YYYY",
to_char(OrderDate,'DAY MM/DD/YYYY') As "MM/DD/YYYY",
to_char(OrderDate,'DDD MM/DD/YYYY') As "DDD MM/DD/YYYY"
FROM SalesOrders
Source by blog.quest.com #
 
PREVIOUS NEXT
Tagged: #Date #format #PostgreSQL
ADD COMMENT
Topic
Name
3+1 =