Title: Date not saving
Last modified: November 30, 2016

---

# Date not saving

 *  Resolved [Begin](https://wordpress.org/support/users/bentalgad/)
 * (@bentalgad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/date-not-saving-2/)
 * If i use a date field with ‘date_format’ => ‘d/m/Y’ it doesn’t save dates with
   a day number greater then 12.
 * Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 6 months ago](https://wordpress.org/support/topic/date-not-saving-2/#post-8498788)
 * Can you provide your config for this, please? Also what your date format version
   is for the WordPress install, from /wp-admin/options-general.php just in case
   that’s possibly playing a part in this.
 *  Thread Starter [Begin](https://wordpress.org/support/users/bentalgad/)
 * (@bentalgad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/date-not-saving-2/#post-8498871)
 * **1)** $basic_box->add_field( array(
    ‘name’ => ‘Birthday’, ‘id’ => ‘_pf_birthday’,‘
   type’ => ‘text_date’, ‘date_format’ => ‘d/m/Y’, ) );
 * **2)** $timezone_format = _x(‘Y-m-d H:i:s’, ‘timezone date format’);
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 6 months ago](https://wordpress.org/support/topic/date-not-saving-2/#post-8500081)
 * Good evening,
 * From the looks of it, in terms of the post meta, it saves regardless. The problem,
   and I don’t quite know where it’d stem from in the code, is that it’s losing 
   things when fetching from the database and preparing for the jQuery UI calendar
   date field.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 6 months ago](https://wordpress.org/support/topic/date-not-saving-2/#post-8500087)
 * Related:
 * [https://github.com/WebDevStudios/CMB2/issues/678](https://github.com/WebDevStudios/CMB2/issues/678)
   
   [https://github.com/WebDevStudios/CMB2/issues/765](https://github.com/WebDevStudios/CMB2/issues/765)
   [https://github.com/WebDevStudios/CMB2/issues/300](https://github.com/WebDevStudios/CMB2/issues/300)
 *  Thread Starter [Begin](https://wordpress.org/support/users/bentalgad/)
 * (@bentalgad)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/date-not-saving-2/#post-8500912)
 * So no solution yet i guess?
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 6 months ago](https://wordpress.org/support/topic/date-not-saving-2/#post-8503116)
 * not that I’ve personally seen, at least. I know one of those has some workaround
   attempts.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Date not saving’ is closed to new replies.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * 6 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/date-not-saving-2/#post-8503116)
 * Status: resolved