Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Timeago feature

Timeago feature il y a 1 an 4 mois #94248

  • tfj
  • Portrait de tfj
  • Hors ligne
  • Expert Lime
  • Messages : 80
  • Remerciements reçus 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
L'administrateur a désactivé l'accès en écriture pour le public.

Timeago feature il y a 1 an 4 mois #94328

  • tfj
  • Portrait de tfj
  • Hors ligne
  • Expert Lime
  • Messages : 80
  • Remerciements reçus 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
Pièces jointes :
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.121 secondes
Donation Image