Date Format Output Filter for Magic Tags

Provide different date format options to your date fields using an Output Filter for your Magic Tag.

You can use the below code to output a post_date or other date field in a nice date format within your Pods Templates, like so:

/* Output filter for my_date
   Use this against a date field in your Pods Fields like so:
   {@post_date,my_date}

   The Function below should be in your functions.php
*/


function my_date($input_date) {
     return date("m/d/Y", strtotime($input_date));         
}

For an example of different date formats, use this reference on Date Formats from the PHP Documentation.

Questions