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.

London, UK

Welcome to the London User Group

Click in the JOIN GROUP button in Home to follow our news and attend our 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.