Skip to main content

i4w_date

Usage

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.

[ELSE_date] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
dateThe values passed to this parameter must be a value that PHP's "strtotime()" function will understand. Most Keap date fields are properly formatted and will work.Today's dateNo
operationAny text value recognized by PHP's strtotime() function.NoneNo
formatThe values passed to this parameter must follow the syntax rules set for the PHP function date(). See: http://www.php.net/manual/en/function.date.phpF jS, YYes

Example

Shortcode
[i4w_date format='F jS, Y']
Shortcode
[i4w_date date='20091205123456' format='F jS, Y']
Shortcode
[i4w_date date='[i4w_db_birthday]' operation='+3 months' format='F jS, Y']