What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How to retrieve each part of the Date Time fields separately?

    Asked by securenetwork on January 16, 2017 at 10:30 AM

    Hello,

    So I wanted to know what are the form fields for each of the "date+time" fields. That way I can add specific pieces to confirmation emails sent to people who fill out the form. Example, if I want to send just the "year, hour, and minute" fields to a client in a email. See attached.

     

    Thanks

    Screenshot
  • Profile Image
    JotForm Support

    Answered by AIDAN on January 16, 2017 at 11:55 AM

    Hi, thank you for contacting us.

    Here are the tags that you can use to retrieve any part of the date time field:

    {date:month} {date:day} {date:year} {date:hour} {date:min} {date:ampm}

    I also created a demonstration form where I added a date time field, then altered the thank you page to show what we picked, field by field, in case you would like to clone ithttps://form.jotform.com/70154283980963

    Please note that what applies for the thank you page, in terms of tags, applies to the email notifications too. I just opted for the thank you page because it can be seen immediately after submit, without needing any emails.

    If you have more questions or need further assistance, please let us know. Thank you.