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