tried with below query select parse_date("sting_date", %y-%m-%d) form [project_id:dataset.table]
input value string value = 20150518 expected output date value = 2015-05-18
Tried to parse_date("sting date", %y-%m-%d) in selection query not worked
tried with below query select parse_date("sting_date", %y-%m-%d) form [project_id:dataset.table]
input value string value = 20150518 expected output date value = 2015-05-18
Tried to parse_date("sting date", %y-%m-%d) in selection query not worked
You need to use an uppercase Y and flip arguments:
SELECT
PARSE_DATE('%Y%m%d', '20180805') AS date