In Snowflake, how do I CAST CURRENT_TIMESTAMP up to the minute only. I don't want seconds, milliseconds, or timezone included in my result.
Asked
Active
Viewed 1,222 times
1 Answers
3
You can use TO_CHAR or TO_VARCHAR.
Query,
select to_char(current_timestamp(), 'YYYY-MM-DD HH24:MI') as new_dt;
Ergest Basha
- 5,369
- 3
- 7
- 22