ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Calculating amount of time between a Date input field and current date.

March 22, 2014 11:56pm

Subscribe [2]
  • #1 / Mar 22, 2014 11:56pm

    danc

    3 posts

    I have an input field for and entry called “start_date” using EE date field entry. I have another entry ,currently text input, “time_in_current_position” which is the amount of time between the ‘start_date’ and the date the entry is being saved. Is there a way to have EE calculate that difference and save to the entry field as a static Date.

    Many thanks for any pointers.

  • #2 / Mar 23, 2014 3:58pm

    Rob Allen

    3114 posts

    Low’s Nice date plugin may work for you - http://gotolow.com/addons/low-nice-date/docs - it can output number of days/month/years between two dates.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases