• Hi Hope someone can help please.

    I have constructed a form in Contact Form 7 and everything works fine except that I cannot get the date format correct.

    First of all I entred the date format as in WP Settings General – result Date Format seems invalid.

    I then went into Contact 7 back office and copied the dateformat dd ([ \t.-])* m ([ \t.-])* y which I entered into the Contact for to DB setting under date setting, carefully completing my form after saving contact form and re-entering the given short code link in my page. I again got the error – result Date Format seems invalid

    Can someone help by explaining how I set up the format to read mm/yyy please.

    many thanks

    https://www.ads-software.com/extend/plugins/contact-form-7-to-database-extension/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter goalseeker2013

    (@goalseeker2013)

    sorry I meant the format mm/yyyy of course in the above.

    Plugin Author Michael Simpson

    (@msimpson)

    Try “m/Y”

    Thread Starter goalseeker2013

    (@goalseeker2013)

    Thank you Michael I take it this goes into the “Contact Form to DB Extension Settings?”

    It is a fantastic plugin, very comprehensive and this was my only stumbling point.

    I appreciate your help.

    Thread Starter goalseeker2013

    (@goalseeker2013)

    I think this would make the entry on the form as eg: 07/2009 if this is the case I still get the error, could you give some guidance if I am correct in putting the coding into the “Contact Form to DB Extension Settings?”

    The settings in my WP Settings General for the date output is set at d/m/Y which gives an input of eg 26/06/2013 i set this the same in Contact settings but still get the error

    Plugin Author Michael Simpson

    (@msimpson)

    Contact Form DB -> Options -> Use Custom Date-Time Display Format (below) = true
    Contact Form DB -> Options -> Date-Time Display Format = m/Y

    Thread Starter goalseeker2013

    (@goalseeker2013)

    Hi Michael

    Sorry to bother you but I checked this and it is set as you suggest without it working

    The linkto the working page is https://eac.eu.com/newsite/join-eac/pre-accredited-member

    the link to the Contact DB options is
    https://eac.eu.com/newsite/wp-admin/admin.php?page=CF7DBPluginSettings
    Is there something else that requires to be done?

    I have a few application forms that require dates entered into the fields.

    Many thanks for your patience so far.

    Plugin Author Michael Simpson

    (@msimpson)

    The setting applies only to how the date in the “Submitted” field is displayed. Fields on your form that are dates are given to the plug as strings (not dates) in the format that the submitting form provides them.

    To do what you want is more complicated. You would need to add a filter to change the date format using PHP.

    Thread Starter goalseeker2013

    (@goalseeker2013)

    HMM thanks for that Michael

    Not too sure if I can handle this much complication though.

    Your plug in gives the opportunity of creating a date tag in the drop down menu ‘Create a Tag’ are you saying that even though it does this you cannot use the field created to enter a date and have it sent as part of the email transmitted with all the other detail that is completed on the form?

    If this is so I will have to do without collecting a date which important to us for renewals, etc. This would make the whole Contact form unusable for us which is a shame as I have created about 10 forms using the plug-in. Unless I collect the date as individual fields for month and year, if that works.

    Have you any other ideas please.

    thanks for taking time out to try to help it is appreciated.

    Plugin Author Michael Simpson

    (@msimpson)

    To be clear, my plugin (CFDB) has nothing to do with drop down or tags you see in the form itself. It does not create forms. It just captures what is posted. So you might be better off looking at the plugin you use to create your form and see if that can create a date field in the format that you want. Then CFDB will simply capture it in that format.

    Thread Starter goalseeker2013

    (@goalseeker2013)

    That now makes sense Michael thanks for helping I will look at form creator which is contact form 7

    Sorry

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Date Setting’ is closed to new replies.