Query editor
WITH preprocessed AS (SELECT-- Assuming you've simplified the date string to 'Jun 19 2022 00:00:00'-- This REGEXP_REPLACE is just illustrative; you'll need to adapt it to your actual preprocessing needsREGEXP_REPLACE(date, '^(\\w{3}) (\\w{3}) (\\d{2}) (\\d{4}) (\\d{2}:\\d{2}:\\d{2}).*$', '\\2 \\3 \\4 \\5', 'g') AS cleaned_date_strFROMdune.rodri_forta.dataset_forta_scanners)SELECT-- Ensure the format string matches the cleaned_date_str formatTO_TIMESTAMP(cleaned_date_str, 'Mon DD YYYY HH24:MI:SS') AS converted_dateFROMpreprocessed;