question

Upvotes
Accepted
15 2 0 3

What date format `TRADE_DATE(fid:16)` use?

Title is description.

Currently, I'm seeing the data such as `10 AUG 2018` or `06 JUN 2018`, which I can't parse unless changing AUG to Aug or JUN to Jun.

What date format `TRADE_DATE(fid:16)` use?? Is there a way around it ?

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apiems
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
20.3k 73 10 20

Hi @cho.seungjin

Please advise how you are accessing the field content / field value and which language API you are using?

With both EMA Java and C++ you can access the individual elements of a data field e.g.

Output from EMA 200__MarketPrice__Streaming

Name: TRADE_DATE Value: 25 / 3 / 2019

code snippet:

cout << (UInt64)fe.getDate().getDay() << " / " << (UInt64)fe.getDate().getMonth() << " / " << (UInt64)fe.getDate().getYear() << endl; 

OR

Output EMA Java example200__MarketPrice__Streaming

Fid: 16 Name = TRADE_DATE DataType: Date Value: 25 / 3 / 2019

code snippet:

System.out.println(fieldEntry.date().day() + " / " + fieldEntry.date().month() + " / " + fieldEntry.date().year()); 

TRADE_DATE is a DATE type field

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea