Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Timeago feature

Timeago feature 1 Jahr 3 Wochen her #94248

  • tfj
  • tfjs Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 80
  • Dank erhalten: 6
  • Karma: 5
Greetings:

Has anyone used a "timeago" feature in LimeSurvey? I want to be able to input a date (in mm-dd-yyyy format) and display a message along the lines of "The date you entered was 10 years, 5 months, and 12 days ago."

I have been using equation type questions along with a text display, but I have not yet been able to make it work properly.

Any ideas?

Thanks!

tfj
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Timeago feature 1 Jahr 3 Wochen her #94328

  • tfj
  • tfjs Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 80
  • Dank erhalten: 6
  • Karma: 5
Greetings:

I came up with a solution for a "timeago" function that will work for now. I have attached a sample survey in case it may help someone else, or if anyone wants to add improvements.

As you will see on the second page of the survey, there is a display of how much time has elapsed between today's date and the date the user enters. It displays in Years, Months, and Days.

tfj
Anhang:
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.126 Sekunden
Donation Image