The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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
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 ANTWORTEN 2
AngelosPachis
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
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.