Hi,
I am trying to figure out a way to convert the string to date using in DB formulas/ tools.
The date is stored as MM/DD/YYYY as V_String in the database, and I would like to convert it to date format before stream the dataset out of database.
From In DB as a string:
Thank you!
Use
CAST("Funded Date" AS DATE)
To convert the date format from MM/DD/YYYY to a date format in Alteryx, you can use the "DateTimeParse" function. Here are the steps:
Drag and drop a "DateTimeParse" tool onto your workflow canvas.
Connect the tool to your data source.
In the "DateTimeParse" configuration pane, select the column that contains the date in the V_String format.
Under "Input Format," select "Custom."
In the "Input Format String" field, enter "MM/dd/yyyy" to match the format of the V_String date.
Under "Output Format," select the desired output format for the date.
Click the "Run" button to execute the workflow and convert the date format.
Once you've completed these steps, the date column in your dataset will be in the desired date format. You can then proceed to stream the dataset out of the database with the updated date format.
Formula In-DB varies based upon what DB you are using (ie what kind of database you are using dictates the syntax of the SQL (SQL-esque) function)... What DB are you using?
@yvonnemiao - There was a very similar question recently. Please have a look: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/How-to-convert-string-date-YYY...