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.” -Superman0
Categories
- 10.6K All Categories
- 8 Connect
- 918 Connectors
- 250 Workbench
- 477 Transform
- 1.8K Magic ETL
- 69 SQL DataFlows
- 478 Datasets
- 218 Visualize
- 260 Beast Mode
- 2.1K Charting
- 12 Variables
- 19 Automate
- 356 APIs & Domo Developer
- 89 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 249 Distribute
- 65 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 191 Product Ideas
- 1.2K Ideas Exchange
- 11 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive