seconds_to_date(seconds)
Converts <seconds> to date format '%Y-%m-%d'.
CREATE OR REPLACE FUNCTION `justfunctions.eu.seconds_to_date`(`seconds` INT64)
RETURNS DATE AS (DATE(FORMAT_DATE('%Y-%m-%d',TIMESTAMP_SECONDS(seconds))))
OPTIONS ( description = '''Converts <seconds> to date format '%Y-%m-%d'.''')
Example
SELECT `justfunctions.eu.seconds_to_date`(1687613655)
2023-06-24