Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql get date from datetime

SELECT '2018-07-25 10:30:30'::DATE;

# result -> '2018-07-25'
Source by tableplus.com #
 
PREVIOUS NEXT
Tagged: #postgresql #date #datetime
ADD COMMENT
Topic
Name
2+8 =