I am trying to call a custom date field to use in a text pane from a node to use as YYYY-mm-dd in:
<div class="swod-date swod-hide">yyyy-mm-dd</div>
I have tried to use:
<?php echo date('Y-m-d', strtotime($node->field_custom_date['und'][0]['value']));?>
but this is not working. I have tied to just print the php but get a result of 1970-01-01 instead of the date in the field.
What am I missing?