Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

error en ecuacion resta entre fechas

  • damian_001
  • damian_001's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #193718 by damian_001
error en ecuacion resta entre fechas was created by damian_001
Hola que tal muchachos, no logro conseguir la resta de fecha ingresada con la fecha actual

Tengo 2 preguntas una de tipo fecha (codigo pregunta "F3A") y otra de ecuación

esta es mi ecuación {(strtotime(date("dd-mm-yyyy"))-strtotime(F3A))/86400}





PD: el formato de la pregunta F3A esta en "dd-mm-yyyy"

Estare muy agradecido con cualquier opinio y ayuda.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #193719 by Joffm
Replied by Joffm on topic error en ecuacion resta entre fechas
Hola,

usa esta ecuación:
{(strtotime(date("d-m-Y"))-strtotime(F3a))/86400}



como explicado aqui
www.w3schools.com/php/php_date.asp

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: damian_001
The topic has been locked.
  • damian_001
  • damian_001's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #193720 by damian_001
Replied by damian_001 on topic error en ecuacion resta entre fechas
Gracias Joffm voy probarlo.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose