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

London, UK

Welcome to the London User Group

Click the 'Join Group' button to get updates on group news and events.

Convert Date to Number

Neeta_Latwal
7 - Meteor

Hi All,

 

Please help me alteryx tool:-

 

DateNumber (desire result)
2023-01-1144,937.00
2023-01-0344,929.00
2023-01-2744,953.00
  

Thanks,

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @Neeta_Latwal ,

 

In a formula tool, try:

 

DATETIMEDIFF([Date],"1899-12-30","days")

 

If you subtract the numbers you provided from the [Date] column, they all give "1899-12-30' as the result, which is your start date. So just reverse engineer that

Varad_Paranjape
6 - Meteoroid

If this is the Excel type format that you are looking for then 

TOSTRING(DATETIMEDIFF([datefield],'1900-01-01','days'))+TOSTRING([numberIDField])

can help.