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

    Formatting date field tag does not work: Provides empty result

    Asked by otkweb on January 06, 2015 at 05:32 AM

    As mentioned in your post:

    "...if you need more customized dates you can do it with standard PHP date formatting", but not working for this format:

    {DATE:D d M Y}

    Expected output: Tue 06 Jan 2015

    Actual output: (empty)



    This is a re-post of a comment on

    POST format customized
  • Profile Image

    Answered by Ben on January 06, 2015 at 08:53 AM

    Hi Antonio,

    Yes, you are correct, it does seem to not work properly at this time.

    I will raise this to our developers so that they can take a look at it and see what is the issue.

    Best Regards,
    Ben

  • Profile Image
    JotForm Support

    Answered by liyam on January 11, 2015 at 11:42 AM

    Hello,

    I've made tests on this and this seems to be fixed.  Here's a sample screenshot below:

    If you're still having problems on your end in regards to this matter, please do let us know.

    Thanks.

  • Profile Image

    Answered by otkweb on January 11, 2015 at 12:59 PM

    Still not working at my side. You can check my form here:

    http://form.jotform.me/form/50052131413436

    What if you use other date variable other than "DATE"? Will it still work at your side?

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on January 11, 2015 at 02:57 PM

    Let me forward a note to our developer who was looking into it.

  • Profile Image
    JotForm Support

    Answered by liyam on January 13, 2015 at 05:55 AM

    Hello again,

    I see now what you mean.

    I've checked the functions of the email alerts and I could not find anything that can let the values of a date-time field be formatted.  The settings using {DATE} tag is not the same as the date-time field from the form field. Using {DATE} simply calls the server's date settings.

    What you can do however is you can call in the values of the month, day, year, etc separately (example: {datefield1:month}, {datefield1:year}, and so on). 

    But since I'm already working on this, I'll do what I can and keep you posted when I have this feature implemented.

    Warm regards,
    Liyam

     

  • Profile Image
    JotForm Support

    Answered by liyam on January 14, 2015 at 10:50 AM

    Hello again, Antonio.

    I have now implemented this feature.  Just like using the formatting on {DATE} tags, just do the same for the dateTime field.

    If you have other questions or concerns, please do let us know.

    Thanks. 

  • Profile Image

    Answered by otkweb on January 14, 2015 at 11:07 AM

    Thumb-up! It is working as expected now! Thanks!