Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql timestamp to date

date_format(from_unix_time(`my_date`), '%e %b %Y') AS 'date_formatted'
cast(my_date as DATE)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #timestamp #date
ADD COMMENT
Topic
Name
5+5 =