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

Formatting JSON Dates

prpatel
11 - Bolide

Hi all,

 

I'm getting an OData dump from SAP by Design that is ingested into my companies ADLS gen2.

 

The dates however are coming over in the format like 

 

/Date(1224043200000)/

Does anyone know how to convert this?

 

This particular date should read: 

 
 

prpatel_2-1665608260495.png

 

Thanks.

 

-prpatel

 

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

I can get you close with something like this @prpatel - the core thing to note here is that SAP OData dates show as the number of milliseconds since Jan 1st, 1970:

 

DataNath_0-1665609166016.png

 

In terms of getting the exact format, I don't think there are built in native functions but could probably hardcode this if needed.

binu_acs
21 - Polaris

@prpatel One way of doing this

 

binuacs_0-1665609695728.png

 

prpatel
11 - Bolide

@binu_acs & @DataNath,

 

Thank you both for your solutions.  Both seem to work.

 

As an FYI, this is considered to be an EPOC UNIX Date format.

 

Appreciate your insights on this.

 

-prpatel.

Labels
Top Solution Authors