Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Data Type Date

jeremywai
7 - Meteor

The data input is in an Excel spreadsheet.  There are two columns with dates and formatted as yyyy-mm-dd on the spreadsheet.  In the Select tool configuration, only one of the two date columns have the Date type to select from.  Type Date is available for the Date Closed field.  Why is type Date is not available for the ETA field?  Thanks.

 

Date Type.PNG

 

 

 

 

8 REPLIES 8
pedrodrfaria
13 - Pulsar

Hi @jeremywai 

 

It is because the ETA field is a numeric data type (double), thus you cannot convert it to date. You would only be able to do this from String to Date, not from Double to Date.

 

Hope this was helpful.

 

Pedro.

pedrodrfaria
13 - Pulsar

@jeremywai 

 

To give you more context:

String to Date:

pedrodrfaria_0-1614969026384.png

 

Double to Date:

 

pedrodrfaria_1-1614969059773.png

 

 

jeremywai
7 - Meteor

I understand what you are saying.  But as mentioned, both the ETA and the Date Closed columns are formatted as yyyy-mm-dd in the input Excel file.  So that should not be the reason.  I did some test and I noticed that the type Date was available for both the ETA and the Date Closed fields when I created a new workflow importing the exact same file.

 

Thanks.

pedrodrfaria
13 - Pulsar

@jeremywai Are you able to provide the dataset? Or a sample?

jeremywai
7 - Meteor

Please see the screen shot below.  Thanks.

 

 

ETA.PNG

pedrodrfaria
13 - Pulsar

Can you show how the dataset looks prior to the select tool screenshot you took?

 

Because it is in double format, so it cannot be in the proper date format as you are showing in your last screenshot.

jeremywai
7 - Meteor

This is what it looks like before the Select tool:

 

ETA data.PNG

 

 

 

SeanAdams
17 - Castor
17 - Castor

hey @jeremywai 

 

Dates are stored in Alteryx as a long string of format YYYY-MM-DD - so any data that is in that format can be converted to a date.

You can check what format Alteryx thinks your data is in by looking at the "metadata" view in the results pane.

 

If Alteryx does not offer the option to change the data type to date using the select tool - you can always use a formula tool to do the conversion using the rich DateTime functions https://help.alteryx.com/current/designer/datetime-functions 

 
Labels