Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Convert MM/DD/YYY (String) to Date Format - In DB

yvonnemiao
5 - Atom

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:

yvonnemiao_0-1681947060036.png

 

Thank you!

5 REPLIES 5
caltang
17 - Castor
17 - Castor

Use 

CAST("Funded Date" AS DATE)

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
nagakavyasri
12 - Quasar

@yvonnemiao Can use anyone of below:

 

Date format1.png

Raj
16 - Nebula

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:

  1. Drag and drop a "DateTimeParse" tool onto your workflow canvas.

  2. Connect the tool to your data source.

  3. In the "DateTimeParse" configuration pane, select the column that contains the date in the V_String format.

  4. Under "Input Format," select "Custom."

  5. In the "Input Format String" field, enter "MM/dd/yyyy" to match the format of the V_String date.

  6. Under "Output Format," select the desired output format for the date.

  7. 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.

apathetichell
19 - Altair

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?

ArtApa
Alteryx
Alteryx
Labels
Top Solution Authors