Shruti
Shruti

Reputation: 135

GETDATE in Snowflake in not working for conversion

In SQL we can do below

select convert(varchar, getdate(), 101)

Anything same in Snowflake for GETDATE ?

Thank You.

Upvotes: 0

Views: 271

Answers (1)

Gokhan Atil
Gokhan Atil

Reputation: 10079

How about using CURRENT_DATE?

SELECT TO_VARCHAR(CURRENT_DATE, 'MM/DD/YYYY' ) ,
       TO_VARCHAR(CURRENT_DATE, 'DD-MM-YYYY' );

Upvotes: 1

Related Questions