WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Datepicker
Date format syntax in shortcode (2 posts)

  1. Eric
    Member
    Posted 1 year ago #

    What's the proper syntax for formatting the date in the short code in the Contact Form 7 form editor?

    I tried [date speaker_date id:speaker_date dateformat:%M %j, %Y], but that failed.

    I'm looking to display like so: Jan 1, 2013

    Thanks!

    http://wordpress.org/extend/plugins/contact-form-7-datepicker/

  2. smity.smiter
    Member
    Posted 1 year ago #

    I guess the shortcode you need would be as follows:
    [date date-test date-format:M.d.yy]

    EDIT: I decided to go through the sourcecode, and found '_' can be used to output blank spaces. so, your required shortcode would be

    [date date-test date-format:M_d_yy]

    again, some problem with ',' which i'm not going to look into.

    // EDIT complete

    I didn't go through the plugin source code, so I don't know why exactly you can't give blank space as a separator.

    http://docs.jquery.com/UI/Datepicker/formatDate

    This link is provided inside the plugin itself, inside the tag generator, "Help".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.