[e2pdf-format-date]

A shortcode wrapper is applied to modify the date output of the shortcode or field slug.

Basic Attributes #

  • Output current datetime: Output current UTC datetime: Output current WordPress datetime: Output current WordPress UTC datetime:
    • gmt - Force to output WordPress UTC datetime.
    • format - Date format in PHP date() function style.
    • function - Function to return the datetime.
      • date - Use PHP date() function (default)
      • wp_date - Use wp_date() function. Must be used to get translated date.

    Format date in custom language:
    • locale - Custom language must be installed on WordPress. To see available locales you can Turn on Debug Mode at E2Pdf -> Settings and check it on the E2Pdf -> Debug page.
    • timezone - Adjust datetime to defined Timezone with wp_date function.
    • timestamp - Date format from the "timestamp" (1681984741) returned by shortcode or field slug.
    • offset - Add or remove a set amount of time.
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.