{"id":42956,"date":"2016-04-02T12:09:09","date_gmt":"2016-04-02T12:09:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/acf-date-time-picker\/"},"modified":"2016-05-03T08:02:14","modified_gmt":"2016-05-03T08:02:14","slug":"acf-date-time-picker","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/acf-date-time-picker\/","author":940678,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.4","stable_tag":"1.1.4","tested":"4.5.33","requires":"3.5","requires_php":"","requires_plugins":"","header_name":"Date & Time Picker for Advanced Custom Fields","header_author":"Bartosz Romanowski","header_description":"","assets_banners_color":"ffffff","last_updated":"2016-05-03 08:02:14","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/toszcze\/acf-date-time-picker","header_author_uri":"http:\/\/romanowski.im\/","rating":1,"author_block_rating":0,"active_installs":300,"downloads":7798,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1385018","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1385018","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1385018","resolution":"1544x500","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2217,2009,2228,2229],"plugin_category":[59],"plugin_contributors":[84502],"plugin_business_model":[],"class_list":["post-42956","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-advanced-custom-fields","plugin_tags-custom-field","plugin_tags-datepicker","plugin_tags-timepicker","plugin_category-utilities-and-tools","plugin_contributors-toszcze","plugin_committers-toszcze"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/acf-date-time-picker\/assets\/icon-128x128.png?rev=1385018","icon_2x":"https:\/\/ps.w.org\/acf-date-time-picker\/assets\/icon-256x256.png?rev=1385018","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This is an add-on for <a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\">Advanced Custom Fields<\/a> and <a href=\"https:\/\/www.advancedcustomfields.com\/\">Advanced Custom Fields Pro<\/a>, which allows to create a Date and Time Picker field.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Create a date and time picker field<\/li>\n<li>Create a time picker field (without a date)<\/li>\n<li>Two time picker types: slider (only in ACF 5 - looks better) and dropdown list (takes less space)<\/li>\n<li>Define date and time format for each field<\/li>\n<\/ul>\n\n<h4>Compatibility<\/h4>\n\n<p>This ACF field type is compatible with ACF 5 (Pro) and ACF 4.<\/p>\n\n<h4>Credits<\/h4>\n\n<p>The plugin uses <a href=\"http:\/\/trentrichardson.com\/examples\/timepicker\/\">Timepicker Addon<\/a> for jQuery UI Datepicker by <a href=\"http:\/\/trentrichardson.com\/examples\/timepicker\/\">Trent Richardson<\/a>, licensed under the MIT license.<\/p>\n\n<p>Icon made by <a href=\"http:\/\/www.flaticon.com\/authors\/simpleicon\">SimpleIcon<\/a> from <a href=\"http:\/\/www.flaticon.com\/\">Flaticon<\/a> is licensed by <a href=\"http:\/\/creativecommons.org\/licenses\/by\/3.0\/\">CC 3.0 BY<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy the <code>acf-date-time-picker<\/code> folder into your <code>wp-content\/plugins<\/code> folder<\/li>\n<li>Activate the Date &amp; Time Picker for Advanced Custom Fields plugin via the plugins admin page<\/li>\n<li>Create a new field via ACF and select the Date &amp; Time Picker type<\/li>\n<li>Please refer to the description for more info regarding the field type settings<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I format the time?<\/dt>\n<dd><p>You can format the time by creating a mask using the following characters:<\/p>\n\n<pre><code>H   Hour with no leading 0 (24 hour)\nHH  Hour with leading 0 (24 hour)\nh   Hour with no leading 0 (12 hour)\nhh  Hour with leading 0 (12 hour)\nm   Minute with no leading 0\nmm  Minute with leading 0\ns   Second with no leading 0\nss  Second with leading 0\nt   a or p for AM\/PM\nT   A or P for AM\/PM\ntt  am or pm for AM\/PM\nTT  AM or PM for AM\/PM\n<\/code><\/pre>\n\n<p>The default time format is <code>HH:mm<\/code>.<\/p>\n\n<p>You can read more about formatting the time <a href=\"http:\/\/trentrichardson.com\/examples\/timepicker\/#tp-formatting\">here<\/a>.<\/p><\/dd>\n<dt>How do I format the date?<\/dt>\n<dd><p>You can format the date by creating a mask using the following characters:<\/p>\n\n<pre><code>d   day of month (no leading zero)\ndd  day of month (two digit)\no   day of the year (no leading zeros)\noo  day of the year (three digit)\nD   day name short\nDD  day name long\nm   month of year (no leading zero)\nmm  month of year (two digit)\nM   month name short\nMM  month name long\ny   year (two digit)\nyy  year (four digit)\n<\/code><\/pre>\n\n<p>The default date format is <code>yy-mm-dd<\/code>.<\/p>\n\n<p>You can read more about formatting the date <a href=\"http:\/\/api.jqueryui.com\/datepicker\/#utility-formatDate\">here<\/a>.<\/p><\/dd>\n<dt>How do I format the date and time to display it on the frontend?<\/dt>\n<dd><p>The plugin saves the date and time in the following format: <code>YYYY-MM-DD hh:mm:ss<\/code> (for example <code>2016-04-01 16:57:00<\/code>). This is the format used by WordPress in <code>wp_posts<\/code> table, so it's easy to use this field value in custom meta queries. However the Advanced Custom Fields API returns the date and time in the format set in the field settings, so you can just use <code>the_field()<\/code> or <code>get_field()<\/code> function in your theme.<\/p>\n\n<p>To display the date and time in a different format, you can use <a href=\"http:\/\/php.net\/manual\/en\/function.strtotime.php\">strtotime()<\/a> and <a href=\"http:\/\/php.net\/manual\/en\/function.date.php\">date()<\/a> functions, for example:<\/p>\n\n<pre><code>echo date('d\/m\/Y g:i a', strtotime(get_field('date_and_time_field')));\n<\/code><\/pre>\n\n<p>You can also use <a href=\"https:\/\/www.advancedcustomfields.com\/resources\/acfformat_value\/\">format_value<\/a> filter to format the field value.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.4 (2016-05-03)<\/h4>\n\n<ul>\n<li>German translation (props <a href=\"https:\/\/github.com\/mlq\">Moritz Lipp<\/a>).<\/li>\n<\/ul>\n\n<h4>1.1.3 (2016-04-30)<\/h4>\n\n<ul>\n<li>[Fixed] Do not try to convert empty string to date.<\/li>\n<\/ul>\n\n<h4>1.1.2 (2016-04-27)<\/h4>\n\n<ul>\n<li>[Fixed] Transparent background of datepicker.<\/li>\n<li>[Fixed] Do not set the current time as a default value.<\/li>\n<li>Temporary removed the slider timepicker for ACF 4.<\/li>\n<\/ul>\n\n<h4>1.1.1 (2016-04-10)<\/h4>\n\n<ul>\n<li>Updated .pot file.<\/li>\n<li>Polish translation.<\/li>\n<\/ul>\n\n<h4>1.1.0 (2016-04-06)<\/h4>\n\n<ul>\n<li>Option for disabling past dates in datepicker.<\/li>\n<\/ul>\n\n<h4>1.0.0 (2016-04-02)<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Date &amp; Time Picker field for Advanced Custom Fields 4 and 5.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42956"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/toszcze"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42956"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42956"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42956"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42956"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42956"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}