I have loaded a csv file into snowflake and one of the date columns is in the format mm/dd/yy hh:mm (ex: 9/30/21 22:30). When I run this command
Select TO_VARCHAR(TO_DATE(operation_date,'DD/MM/YYYY hh:mm'),'MM/DD/YYYY')
I get this error:
Can't parse '9/30/21 22:30' as date with format 'DD/MM/YYYY hh:mm'
Can someone please tell me how I can fix this issue, so my final output would look something like: 09/30/21