This shortcode returns (1) the current date or (2) the passed date formatted according to the parameter value. It can interpret PHP strtotime() instructions and apply them to either the current date or the passed date.

This shortcode does NOT support conditional branching with [ELSE_date].
Shortcode nesting is NOT supported.


date The values passed to this parameter must be a value that PHP’s “strtotime()” function will understand. Most ActiveCampaign date fields are properly formatted and will work.
Default: Today’s date.
Required: no.
operation Any text value recognized by PHP’s strtotime() function.
Default: none.
Required: no.
format The values passed to this parameter must follow the syntax rules set for the PHP function date(). See:
Default: ‘F jS, Y’.
Required: no.


[mbr_date format='F jS, Y']
[mbr_date date='20201205123456' format='F jS, Y']
[mbr_date date='[mbr_db_my_custom_field]' operation='+3 months' format='F jS, Y']


To use this shortcode in your own PHP code, please use as follows:

$my_date = mbr_date( array( 'date'=>'20091205123456', 'format'=>'F jS, Y', 'operation'=>'+3 months') );