Issues with Converting Text to Date
In the Dataflow, I actually concatenated the MONTH('Date Column') and Year('Date Column') but when I am trying to convert that to date using either DATE() or STR_TO_DATE() functions, I am getting no values in the column.
The deired output is like "Month name - Year" which should be of a date data type.
Any help is appreciated!
Comments
-
Are you doing this in a dataflow or beast mode? If you want to do it in a dataflow you should be able to use the date operations tile to make two different column and then combine them.
Are you trying to get "Month name - Year" in the dataset or just to view on a card? Because you can format the date any way you want in the card settings so that it stays a date type column but still displays how you want.
1 -
You can do this in a MySQL dataflow by using this:
SELECT
DATE_FORMAT(`Date_Field`, "%M - %Y") as `Month - Year`
FROM your_table
______________________________________________________________________________________________
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman
______________________________________________________________________________________________0
Categories
- 10.6K All Categories
- APAC User Group
- 12 Welcome
- 36 Domo News
- 9.6K Using Domo
- 1.9K Dataflows
- 2.4K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 338 Workbench
- 250 Domo Best Practices
- 11 Domo Certification
- 460 Domo Developer
- 47 Domo Everywhere
- 100 Apps
- 703 New to Domo
- 84 Dojo
- Domopalooza
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 22 お知らせ
- 62 Kowaza
- 295 仲間に相談
- 649 ひらめき共有