¿Cómo mostrar la diferencia en minutos?

  • abreugarcialaura
    Fecha de consulta 15 de julio de 2024, 18:46

    Buenas tardes.

    Siguiendo estas indicaciones https://www.jotform.com/es/answers/3435621-calcular-diferencia-entre-horas, estoy intentando hacer un formulario calculando la diferencia en horas y minutos, ya que tengo una hora de llegada y una hora de salida, sin embargo, al calcular la diferencia en minutos, si da un número de una cifra ej: 5 minutos, la difrencia (Diferencia en horas:Diferencia en minutos) la da como 0:5 lo cual indica que se trata de 50 minutos.

    Existe alguna forma de que al campo Diferencia en minutos pueda colocarle el 0 si se trata de un número de una cifra? Ej: 0:05

    Gracias de antemano.

  • Ronald Jotform Support
    Fecha de respuesta 15 de julio de 2024, 21:05

    Hello Laura,

    Our Spanish Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Spanish, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, We have an easier work around that you can use to create a Time Difference on your form. Let me show you how:

    1. In Form Builder, click on the Add Form Element menu on the left side of the page.
    2. Under the
    Basic tab, scroll down to Time, and drag and drop a Time element to your form.

    ¿Cómo mostrar la diferencia en minutos? Image 1 Screenshot 40

    3. Select the Time element and click the Gear Icon.
    4. Under the Range Tab, toggle on the Time Range and Duration Indicator option.

    ¿Cómo mostrar la diferencia en minutos? Image 2 Screenshot 51

    Doing this will calculate the time difference in the format that you need.

    ¿Cómo mostrar la diferencia en minutos? Image 3 Screenshot 62

    We also have a guide here that you can check to learn more about this.

    Give it a try and let us know if you need any other help.

Su respuesta