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
| Parameter | Description | Default | Required |
|---|---|---|---|
| date | The 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 date | No |
| operation | Any text value recognized by PHP's strtotime() function. | None | No |
| format | The 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.php | F jS, Y | Yes |
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']