最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Date format account leve, not reflecting in data preview - Stack Overflow

programmeradmin1浏览0评论

Currently in snowflake the date type column shows dates as YYYY-MM-DD format.

But i wanted to see them as MM-DD-YYYY format. For that i have run the below sql command

ALTER ACCOUNT SET date_output_format = 'DD-MM-YYYY';

SHOW PARAMETERS LIKE 'DATE_OUTPUT_FORMAT';

and we can see its set

later in the worksheet i ran select * from sometable and we can see the date columns as MM-DD-YYYY format

but in the data preivew we still see the date as YYYY-MM-DD

how to make the data preivew also show date as YYYY-MM-DD

Currently in snowflake the date type column shows dates as YYYY-MM-DD format.

But i wanted to see them as MM-DD-YYYY format. For that i have run the below sql command

ALTER ACCOUNT SET date_output_format = 'DD-MM-YYYY';

SHOW PARAMETERS LIKE 'DATE_OUTPUT_FORMAT';

and we can see its set

later in the worksheet i ran select * from sometable and we can see the date columns as MM-DD-YYYY format

but in the data preivew we still see the date as YYYY-MM-DD

how to make the data preivew also show date as YYYY-MM-DD

Share Improve this question edited Feb 6 at 7:56 DarkBee 15.6k8 gold badges70 silver badges115 bronze badges asked Feb 6 at 7:53 SanthoshSanthosh 11.8k30 gold badges150 silver badges302 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can change the date format from the three dots in Data Preview tab as shown in screenshot below.

From the documentation

The options available to you depend on the type of data in the column.

which based on my understanding means the preview data has a limited set of options.

I tested it by creating a date column and the options I see in the three dots are

-YYYY-MM-DD HH:MM:SS

-YYYY-MM-DD

-Mon YYYY

发布评论

评论列表(0)

  1. 暂无评论