ActiveCampaign
Also available forKeapUniversal

[memb_date]

Summary
Displays the current date (or any date you specify), formatted using PHP date format tokens.

Description

Displays the current date (or any date you specify), formatted using PHP date format tokens.

Shortcode Examples

Display the current date using the default format:

[memb_date]

Display a specific date:

[memb_date date="2024-01-15"]

Display the current date in a custom format:

[memb_date format="Y-m-d"]

Display a future date in a specific timezone:

[memb_date date="+1 week" host_timezone="America/New_York"]

Shortcode Parameters

dateThe date/time string to display. Accepts any value valid for PHP's strtotime(), such as now, +1 week, 2024-01-15, or next Thursday. (Default: now)
formatThe PHP date format string. See the date formatting reference for available tokens. (Default: l, F dS, Y, g:sA e)
host_timezoneThe timezone to use when formatting the date, as a PHP timezone identifier (e.g. America/New_York). If empty, the WordPress site timezone is used. (Default: empty)
captureCapture the output of the shortcode and route it to a variable for later use. (?)
txtfmtA comma separated list of text processing functions to apply to the output. (?)
htmlattrThe HTML attribute to use if this shortcode is embedded inside of an HTML tag.
beforeText to display before the date output. (Default: empty)
afterText to display after the date output. (Default: empty)

Shortcode Attributes

ConditionalNo
NestableNo
Accepts formattingYes
CapturableYes