Title: date format
Last modified: August 30, 2016

---

# date format

 *  Resolved [Mark Dalderup](https://wordpress.org/support/users/2grafik/)
 * (@2grafik)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/date-format-70/)
 * I use this code to show a date and description in repeatable fields
 *     ```
       <?php $repeatable_field_values = simple_fields_values("datum_training,omschrijving_training");
       foreach ($repeatable_field_values as $values) {
       echo "<span>";
       echo $values["datum_training"];
       echo "</span>";
       echo "<span>";
       echo $values["omschrijving_training"];
       echo "</span>";
       }
       ?>
       ```
   
 * I use the date and time picker on the datum_training field
 * It doesn’t give me a date but the word “array”.
 * What is the correct syntax to access the date array and get a date formatted 
   like this “11 November 2015” in the above code?
 * Thanks for your help
 * Mark
 * [https://wordpress.org/plugins/simple-fields/](https://wordpress.org/plugins/simple-fields/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/date-format-70/#post-6356538)
 * Check out the return values here:
    [http://simple-fields.com/documentation/field-types/date-and-time-picker/](http://simple-fields.com/documentation/field-types/date-and-time-picker/)
 * You could probably write
 *     ```
       echo $values["datum_training"]["date_only"]["ISO_8601"];
       ```
   
 * You can also write
 *     ```
       print_r( $values["datum_training"] );
       ```
   
 * to see exactly what the array contains and then choose what to output.

Viewing 1 replies (of 1 total)

The topic ‘date format’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-fields_fafafa.svg)
 * [Simple Fields](https://wordpress.org/plugins/simple-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-fields/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [foreach](https://wordpress.org/support/topic-tag/foreach/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/date-format-70/#post-6356538)
 * Status: resolved