Variable para la fecha de hoy

  • modernizacionroldan
    Fecha de consulta 29 de octubre de 2023, 19:46

    ¿Existe alguna función o variable para poner con la fecha del día? Algo asi como date() today() datetime()?

  • Rene Jotform Support
    Fecha de respuesta 29 de octubre de 2023, 22:44

    Hi modernizacionroldan,

    Thanks for reaching out to Jotform Support. Unfortunately, our Spanish Support agents are busy helping other Jotform users at the moment. 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, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. You can use the date picker widget, a short text field, and the form calculation element to show the date and time of the day when the user accesses the form. Let me show you how to do it:

    • In Form Builder, click the Add Form Elements button on the upper left side of the page.
    • Under the Basic tab, click or drag the Date Picket element into the form. 
    • Click the Gear icon and in the Options tab, set the Default Date to Current.

    Variable para la fecha de hoy Image 1 Screenshot 60

    • Under the Time tab, enable the Time Field.

    Variable para la fecha de hoy Image 2 Screenshot 71

    • You can set the Date Picker filled to Read Only or Hidden Field from the Advanced tab so that users won't be able to change it.

    Variable para la fecha de hoy Image 3 Screenshot 82

    • After that, add a Form Calculation widget to your form. The Form Calculation widget will be used to pull the day of the selected date.
    • Click the Widget Settings button of the Form Calculation widget then click the horizontal ellipsis button(3 horizontal dots) on the panel.

    1667992627 636b8c337852e 636b8c33784f1 Screenshot 21 Screenshot 93

    • Under the Math Functions tab, scroll down until you see the dateString() function and click on it so it can be added to the calculation

    1667992740 636b8ca4e8de5 636b8ca4e8da8 Screenshot 32 Screenshot 104

    • Next, add the Date Picker field inside the dateString() math function and click the Save button

    Variable para la fecha de hoy Image 4 Screenshot 115What this does is it converts the Date/Time value into a date string that includes the first 3 letters of the day.

    Variable para la fecha de hoy Image 5 Screenshot 126

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


  • modernizacionroldan
    Fecha de respuesta 30 de octubre de 2023, 22:08

    ¿Existe alguna función o variable para poner con la fecha del día? Algo asi como date() today() datetime()?

    En el reporte de aprobación quiero poner la fecha del día o la fecha de aprobación pero sin la tabla, solo la fecha

    Variable para la fecha de hoy Image 1 Screenshot 20

  • Rene Jotform Support
    Fecha de respuesta 30 de octubre de 2023, 22:23

    Hi modernizationroldan,

    Thanks for getting back to us. Just to confirm, do you mean removing this part of the approval status table:

    Variable para la fecha de hoy Image 1 Screenshot 20

    If so, unfortunately, it isn't currently possible. However, If that’s not exactly what you’re looking for, can you explain a bit more so I can help you better?

    Let us know if there's anything else we can help you with.