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 ?

Best Answer

  • umer.nalla
    Answer ✓

    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