Title: acf_date parameter formatting bug?
Last modified: October 29, 2020

---

# acf_date parameter formatting bug?

 *  [iantresman](https://wordpress.org/support/users/iantresman/)
 * (@iantresman)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/acf_date-parameter-formatting-bug/)
 * I don’t think the acf_date parameter is working with the date_format parameter.
 * `[field acf_date=datetimepick]` correctly displays the Unix timestamp, eg. 1604016000
   `[
   field acf_date=datetimepick date_format="Ymd"]` displays no output
 * As suggested, I have the [Advanced Custom Fields data time picker](https://www.advancedcustomfields.com/resources/date-time-picker/)
   stored as a Unix timestamp.
 * I’ve had to resort to using a workaround using the [Insert PHP Code Snippet](https://en-gb.wordpress.org/plugins/insert-php-code-snippet/)
   plugin, to define a shortcode, eg [xyz-ips snippet=”showdate”] with the PHP snippet:
   
   Shortcode PHP Snippet:
 *     ```
       <?php
       the_field('datetimepick');
       ```
   
    -  This topic was modified 5 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).
    -  This topic was modified 5 years, 7 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).

Viewing 1 replies (of 1 total)

 *  [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/acf_date-parameter-formatting-bug/#post-13597235)
 * Try
    `[format date=Ymd in=timestamp][field datetimepick][/format]`
 * I do not have a time-stamp field available, so I’m not sure about adding format
   to `[field]`. But syntax should be same.
    -  This reply was modified 5 years, 7 months ago by [polarracing](https://wordpress.org/support/users/polarracing/).

Viewing 1 replies (of 1 total)

The topic ‘acf_date parameter formatting bug?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [polarracing](https://wordpress.org/support/users/polarracing/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/acf_date-parameter-formatting-bug/#post-13597235)
 * Status: not resolved