Changing String Date Type from DD-MM-YYYY to YYYY-MM-DD in Date Datatype

64cfc1c7-2512-4279-bc6b-a45052a26110.png

I have a view in Looker which has a dimension Sales date with datatype as String and it is in the format DD-MM-YYYY.  I need to convert it into a date datatype having format YYYY-MM-DD.

0 1 580
1 REPLY 1

Depending on your database & dialect you can search for functions that would parse your string date with expected format and then would return the data as date type. In BigQuery those are PARSE_DATE() or PARSE_TIMESTAMP()

Top Labels in this Space
Top Solution Authors