Looking at http://www.php.net/manual/en/datetime.formats.date.php I dont think strtotime will convert a DD/MM/YYYY to time correctly.
However it can do MM/DD/YYYY or YYYY/MM/DD.
Try using the date format of YYYY/MM/DD
Or if thats not to your liking then you can use the same date format but you will have to, on save, split up the date and convert it to unix datestamp a diff way. You could use:
$date = "dd/mm/yyyy";
$date = explode("https://wordpress.stackexchange.com/", $date);
$date = mktime(0, 0, 0, (int)$date[1], (int)$date[0], (int)$date[2]);
Related Posts:
- Date, Time, and Timezones
- Convert jQuery Datepicker Format to SQL Date Format
- How to filter a dd/mm/yyyy date from a custom field in a query
- Compare WP Custom Field date
- converting custom field date format
- How to add a new meta key and assign timestamp to posts
- Show 1 post and after a specific date show the next one
- wp custom field date format compare
- How do I convert all custom_field php timestamps in the database to js timestamps?
- How to show certain data on certain interval of period
- Custom Field Date Problem
- Convert all dates in field to Unix time, except those already in Unix time
- Custom post meta field effect on the performance on the post
- Difference between meta keys with _ and without _ [duplicate]
- Having different sidebar content for MANY pages?
- Add custom objects/entities to WordPress
- How can I fetch CSS from JSON WP REST API response
- How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?
- Plugins won’t recognize my plugin’s hidden custom fields
- Store JSON in a custom field
- Calling Specific Pages with wp query Part II
- How do I assign this filter to a variable? (Appending php & markup to the_content)
- If value present, order posts by two consecutive custom fields
- Copying Custom Meta Values from existing post to a duplicate post
- Save page data to an xml file
- Execute/Parse Shortcode in Native WordPress Custom Field Value Field
- Displaying Custom Fields on Post with Genesis Child Theme
- Custom fields: In what order are they saved into the DB?
- Metabox image upload and custom field
- How to add a title field in comments?
- Inserting Schema Markup (JSON-LD) Manually with Custom Fields or any Better Ways?
- Force hide custom field metaboxes
- BuddyPress – Hook to Update Custom Profile Fields [closed]
- Custom Fields Code not echoing whats in the value field
- Meta query with timestamp using WP_query
- Passing Custom Field Data as Array to be Saved (Resulting Custom Field Array is inconsistent)
- load custom fields on click
- Add Custom Field to a template page backend
- How to wrap meta values seperated by comma in ? [closed]
- custom field not saved
- How to create a Custom Meta Box with Name/Value Admin User Input Fields?
- Auto-remove custom field with no value on publish
- Custom Fields box in the post editor: Replace textareas with input elements
- Hide custom meta data if empty
- Passing args to WP_User_Query am I using meta correctly?
- How to get latest post value if first post is empty in wordpress
- Custom fields attached to a page template only show on edit screen when page is saved
- Value from custom field is not being displayed?
- Can I access a post meta field before the loop?
- wrap text around custom fields array
- Displaying page image in the footer automatically
- Hide custom column in admin template screen (Elementor) [closed]
- ORDER BY custom field value out of where clause
- Show image if author meta (profile fields) exists outside loop
- How can i retrive a text from a custom field
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- Is it possible to populate a custom field with content from a page
- Buik update custom field values from external API
- TinyMCE custom button retrieve value from custom field
- Change a custom field value after X number of seconds
- Incorrect ordering of custom post type based on time
- How to put forward a blog post
- Let Users Filter Posts by Custom Fields
- Run Function if Order Meta Exists – WooCommerce
- Jquery on custom-field backend
- Display latest post depending on Meta Box content
- Custom fields won’t update
- Replacing custom field with shortcode
- How to use custom fields like Title to show value in content?
- Populate custom checkout fields with data from previous orders
- Expire Date Condition not Working ACF WordPress
- Making custom meta box required (with error message if not filled in) on Gutenberg
- Is the use of many custom field not good for server?
- Changing form action based on selected value
- Very large list of options for BuddyPress profile fields
- Hiding Dropdown Fields
- Can you generate a featured image from two images from custom fields?
- Change Order of Sections Using Custom Fields
- How to add content with a filter when there’s no content in the editor
- Text in header as a page – hide from Web crawlers
- When post is updated, custom metadata in text area field is overwritten
- Order a query by meta_value and then by post_date
- custom field functionality
- Custom Fields – How can I remove the publish option for certain users
- Can i categorise my meta box?
- How to overwrite a value for a custom field?
- WordPress archives by custom field and date
- Decouple page name from page title
- Custom Field add markup to line breaks
- When editing a post with a custom meta box the values aren’t displaying correctly
- Function to retrieve a picture if there is no picture is attached
- Show posts containing or not custom field
- Use Metabox to enter Post Title
- add_post_meta insert null value into Database
- extra post fields for url + youtube video / implementation
- How to create a searchable database with a single-field search box at the front end? [closed]
- Add fields to edit in custom widget
- custom field value is blank or empty
- How to add a custom field to the comments “Quick Edit” screen?
- Multiple triggers when publishing, saving or updating a post in WordPress