calculating numbers of days between 2 dates

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



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





  • Options
    MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,520 RM Data Scientist

    Hi there,


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



    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.