Get unformatted field values

Problem

You need to return a field value unformatted in order to format it individually later.

Solution

You can access the naked field value with the getUnformatted method like so:

<?php echo date("F j, Y, g:i a", $page->getUnformatted("a_date_field")); ?>

Resources

Version

1.0.1

View/correct recipe on GitHub

https://github.com/processwire-recipes/Recipes/blob/master/get-unformatted-field-values.md

Author(s)