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

    Change date format from 2014/01/13 to 20140113

    Asked by egil500 on March 12, 2014 at 06:18 PM

    How can I change the dateformat from 2014/01/13  to 20140113 .... is it possible to change with css injection

    format
  • Profile Image
    JotForm Support

    Answered by EltonCris on March 12, 2014 at 07:25 PM

    Hi,

    That can be customized via CSS but it is only for form level and not within the submission data. 

    However, if you're only after on the email notification result, you can display the date field with that format by using year, month and day tags.

    Example, if your Date field variable is {mydate}, you can replace it with the following.

    {mydate:year}{mydate:day}{mydate:month}

    Visual guide:

    So when the notification reached on your email, it will appear like this:

    20140113

    Hope this helps!

  • Profile Image
    JotForm Support

    Answered by EltonCris on March 12, 2014 at 07:28 PM

    Sorry, I think it should be.

    {mydate:year}{mydate:month}{mydate:day}  <---year-month-day, I did switched the month and day since my previous post was incorrect. :)

    Result: 20140113

    Regards!

  • Profile Image

    Answered by egil500 on March 12, 2014 at 07:35 PM

    hi

    I tried these and they work in the autoresponder but not for the minute...could you give me the right terminiolgy minutes too..

    {date:year}     ok

    {date:month}  ok
    {date:day}      ok
    {date:hour}     ok

    {date:minutes}  no

    {date:minute}   no

    But I really would like to have the functinality on form level too so would really appreciate if you could give me the css code for it too..

  • Profile Image
    JotForm Support

    Answered by abajan on March 12, 2014 at 09:16 PM

    Try {date:min}. My tests indicate that that should work.


    Cheers

  • Profile Image

    Answered by egil500 on March 12, 2014 at 09:47 PM

    Thanks I will try that

    but could you answer css question too I have figured outr that I can use

    #month_114  {display:none !important;}
    #day_114   {display:none !important;}
    #year_114  {display:none !important;}
    #hour_114  {display:none !important;}
    #min_114   {display:none !important;}
    #ampm_114  {display:none !important;}

     

    to remove day month year etc... but how can I remove the separators / : at in the datepicker ?

  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 13, 2014 at 01:56 AM

    Hello egil500,

    You can inject the following custom css in your form to hide the separators in all occurrences:

    .date-separate {display:none;}

    The  following guide should help you inject the custom css:  http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Thank you!