I am using Redshift and have a field in a table as type int representing a day's date. For example the int is 20180215 . The format is yyyymmdd.
I would like to know what is the most efficient way to convert this int to a timestamp (yyyy-mm-dd hh:mm:ss) using SQL.