Deal with Extract Macro datetime issue

User: "phivu"
New Altair Community Member
Updated by Jocelyn

Hi RapidMiner,

 

I got an issue when using Extract Macro with datetime values. The datetime value i want to extract is "Dec 03, 2016 9:04:51 AM", but after using Extract Macro, the value extracted is "03/12/2016 09:04:51 AM" (I used Log operator to see this value), which mean "Mar 12, 2016 9:04:51 AM" (day becomes month and month becomes day). And then when I used Filter Examples to keep only records after "Dec 03, 2016 9:04:51 AM", i got all records after "Mar 12, 2016 9:04:51 AM", which is not what i want. Do you have any idea to solve this? Thank you very much.

 

I attached my process here.

 

Best,

phivu

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Edin_Klapic"
    New Altair Community Member
    Accepted Answer

    Hi phivu,

     

    I recommend using Generate Attributes to create a numerical Attribute representing the date value in milliseconds since Jan, 1st 1970 (see screenshot).

    You can then apply Extract Macro and Filter Examples on this attribute.

     

    Best,

    Edinimage.png

     

     

     

     

    User: "phivu"
    New Altair Community Member
    OP
    Accepted Answer

    Thanks Edin, this should work.

     

    Best

    phivu