question

Upvotes
Accepted
15 3 4 6

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-sdkema-apirrtelektron-message-apiems
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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