Print Date
Prints the date out in the format you specify as shown below.
Usage
Shortcode:
[print_date]
Parameters:
Parameters | Description |
---|---|
[format] (required) | The date format to be returned. You can find a list of date formats on http://php.net/manual/en/function.date.php. |
[datestring] (optional) | Preformatted date that needs to be changed into another format |
[timestamp] (optional) | Epoch timestamp (default: Today's Date) |
Code Example:
<div class="col-sm-8"> <h2>{{event_title}}</h2> <span class="news-date">[print_date format="F d, Y g:ia" timestamp="{{start_time}}"]</span> </div>
Note: Any date value printed from a module such as {{start_time}} will be printed as 08/15/16.
Please sign in to leave a comment.
0 Comments