🎉 🎉 RAPIDMINER 9.10 IS OUT!!! 🎉🎉

Download the latest version helping analytics teams accelerate time-to-value for streaming and IIOT use cases.

CLICK HERE TO DOWNLOAD

calculating numbers of days between 2 dates

mengkoon007mengkoon007 Member Posts: 30 Contributor I
edited November 2018 in Help

Hi,

 

I am using the generate attribute with expression: date_diff(start_date,date_now()) to calculate the days from start date to current date. It shows "56473958106", may I know how to display in days? Thanks.

 

Start Date=3 Mar 2015

Current Date=15 Mar 2016

Numner of days=653 days

 

 

 

Answers

  • mschmitzmschmitz Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,077  RM Data Scientist

    Hi there,

     

    time differences are always in ms. So you need to go for /1000/60/60/24 for days.

     

    ~Martin

    - Head of Data Science Services at RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.