I am new to Snowflake and need help in converting string to date time.
I am loading the .csv file into Snowflake stage table which is all having string columns.
One of the column name END_TIME_STAMP (STRING) having values like below
| END_TIME_STAMP |
|---|
| 08-09-2022 06:23:10 AM |
| 08-09-2022 11:10:10 PM |
My requirement is how to convert this values to 24 hr time format in snowflake.
OutPut:
| END_TIME_STAMP |
|---|
| 08-09-2022 06:23:10.000 |
| 08-09-2022 23:10:10.000 |
i tried using TO_TIMESTAMP(), TO_TIMESTAMP_NTZ(), but it throughs me below error
Timestamp '6:23:20 AM' is not recognized
