Presto获取当天、昨天的格式化日期字符串

format_datetime(current_date, 'YYYY-MM-dd'),
format_datetime(DATE_ADD('day', -1, current_date), 'YYYY-MM-dd')
format_datetime(DATE_ADD('day', -2, current_date), 'YYYY-MM-dd')

 

Leave a Reply

Your email address will not be published. Required fields are marked *