Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to convert timestamp to date in snowflake

I have to load csv file to snowflake using copy command. These is a timestamp column in csv file, which I need to convert to date and load to snowflake any idea on the command?

like image 677
Vikram Avatar asked Dec 13 '25 12:12

Vikram


1 Answers

one of the easy way to convert timestamp into date in snowflake is If you have created_date = 2023-10-18 08:36:59.098 you want 2023-10-18

cast(CREATED_DT AS Date) it will returns you only date. I hope it will help enter image description here

like image 195
Ismail Sajjad Avatar answered Dec 16 '25 00:12

Ismail Sajjad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!