Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to get DateTimeDiff using In-Database tool

Oskido
7 - Meteor

Hi,

 

I would like to get number of days between two dates using In-Database tool.

Is it possible?

 

Thanks..

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

@Oskido when using the In-DB tools and the Formula In-DB tool, you need to use the SQL syntax of the platform you're connecting to. For example, if you're connecting to Snowflake it'd be:

 

DATEDIFF( day, <date1>, <date2> )

Oskido
7 - Meteor

Thank you. I am connected to SQL database..

 

Oskido
7 - Meteor

It worked. Thank you...

Labels
Top Solution Authors