I'll need to extract exactly the "yearweek" of different dates in my table but I couldn't find any match for 'yearweek' in BigQuery (Standard SQL / Legacy SQL ).
Thanks
For the result as a string, use '%Y%W'
with "format". For example:
select format_date('%Y%W', current_date)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With