-1

I have dates like 54940,55001,54970 etc. I need to convert these dates into yyyy-MM-dd format in snowflake

Marcel
  • 2,454
  • 1
  • 5
  • 13
Neha Nayal
  • 21
  • 4

1 Answers1

-1

The following steps should help:

  1. Convert the julian to a gregorian date with a function (the conversion depends on your understanding of a julian date - there are different ones. If you try to google that, you may find several conversion rules)
  2. Convert the string/integer to a date by using TO_DATE() https://docs.snowflake.com/en/sql-reference/functions/to_date.html
Marcel
  • 2,454
  • 1
  • 5
  • 13