I'm trying to format a date field inside of a DS custom field. I'm printing the field from the entity object, and the value is a string. I've tried passing it through date_format but that doesn't work. Any help would be appreciated.
<?php print '<h1 id="page-title">' . $entity->title . ' - ' . format_date($entity->field_start_end_date['und']['value'], 'medium') . '</h1>'; ?>