i am looking to change in snowflake the values of a date field which has for example this format: 2/10/17, 11/1/17, 12/18/19 to this format: 20010408, 20121226, 20010304.
Thank you
I will assume that your date field is a string, since neither of those date formats are actually how Snowflake stores a date. But to convert, you'd do something like this:
SELECT TO_VARCHAR(TO_DATE('2/10/17','MM/DD/YY),'YYYYMMDD');
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