PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Split date tag

  1. It would be very useful to be able to have separate date tags for days months and years so it is possible to format notification emails properly for inflexible email parsing programs, amongst other uses.

    I understand there are options to specify dd/mm/yyyy or mm/dd/yyyy but unfortunately the program that parses the notification email assumes an american date format when /'s are used, so this is the format that I am forced to show to visitors so the dates are not mixed up when they are recorded.

    You have {date_dmy} and {date_mdy} - why not have {date_d}, {date_m}, {date_y}? Same goes for the advanced date field. Then you can satisfy the needs of people who want an ISO date format, those who use dashes or slashes, those who use both i.e. dd/mm-yyyy...

    Another solution would be to let people specify the exact $format of the timestamp or submitted date in the tag itself. For example a tag like {datetime_"F j, Y, g:i a"} would output March 10, 2001, 5:16 pm.

    Cheers

    Posted 13 years ago on Friday November 19, 2010 | Permalink
  2. PostOffice
    Member

    I'd also like to see the ability to have date fields where users enter dates that are just dd/mm (no year).

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  3. Thanks for the suggestions. Enhancing the date field and the phone number field are on our list of enhancements we would like to make. Enhancing and improving existing features is one of our goals for 2011.

    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  4. I have a similar issue. Perhaps you could suggest a work around until the option for the date fields are enhanced? I would like to use the month and year in the confirmation email after the form is successfully filled out. I need it to be part of a string of other fields, such as ID and Name. Like: ID.7.11.smith this is used as a certificate ID after the form is successfully filled out. Can I have a drop down field of just months and one for years? That would involve extra step, since it is the month and year that the form is filled out that I am interested in.

    Any suggestions would be greatly appreciated.

    Posted 12 years ago on Friday July 8, 2011 | Permalink
  5. You would have to do what you described, create a drop down for the month and a drop down for the year and use these instead of the Date field. You could use CSS Ready Classes to they appear side by side on the form.

    CSS Ready Classes are discussed here:

    http://www.gravityhelp.com/documentation/page/CSS_Ready_Classes

    Posted 12 years ago on Friday July 8, 2011 | Permalink