In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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