{"id":1186445,"date":"2016-11-02T09:50:39","date_gmt":"2016-11-02T16:50:39","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/"},"modified":"2016-11-02T09:50:39","modified_gmt":"2016-11-02T16:50:39","slug":"need-the-event-start-date-in-specific-format-implementing-countdown","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/","title":{"rendered":"Need the event start date in specific format &#8211; implementing countdown"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I am implementing inside the ticket area of each event &#8211;  smartcountdown shortcode. By so each ticket has a countdown for the sales end date. This is done by implementing the code down below into the ticket.php file (which is placed in my child-theme<\/p>\n<pre><code>$ticketenddate = $ticket-&gt;end_date;\nif ( !empty($ticket-&gt;end_date) ) {\necho do_shortcode( &#039;[smartcountdown deadline=&quot;&#039; .$ticketenddate. &#039;&quot; fx_preset=&quot;Sliding_text_fade.xml&quot; digits_style=&quot;font-family:Lucida Sans Unicode, Lucida Grande, sans-serif;font-weight:lighter;font-size:small;&quot; digits_size=&quot;13&quot; title_before_down=&quot;&quot; mode=&quot;countdown&quot; units=&quot;days,hours,minutes,seconds&quot;]&#039; );<\/code><\/pre>\n<p>I need to get the<strong> start event date<\/strong> in this format (example 2016-10-29 18:30:00 ) for the same reasons as the described above.<br \/>\nWhat I&#8217;ve found until this moment is this<br \/>\n<code>tribe_get_start_date();<\/code><br \/>\nbut does not returns the format which I need (it returns &#8211; \u043d\u043e\u0435\u043c\u0432\u0440\u0438 30 @ 10:00 am)<\/p>\n<p>Can you lead me to the way how to get the event date in this format 2016-10-29 18:30:00?<\/p>\n","protected":false},"template":"","class_list":["post-1186445","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Need the event start date in specific format - implementing countdown -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Need the event start date in specific format - implementing countdown -\" \/>\n<meta property=\"og:description\" content=\"Hi, I am implementing inside the ticket area of each event &#8211; smartcountdown shortcode. By so each ticket has a countdown for the sales end date. This is done by implementing the code down below into the ticket.php file (which is placed in my child-theme $ticketenddate = $ticket-&gt;end_date; if ( !empty($ticket-&gt;end_date) ) { echo do_shortcode( [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/\",\"name\":\"Need the event start date in specific format - implementing countdown -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-11-02T16:50:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Need the event start date in specific format &#8211; implementing countdown\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Need the event start date in specific format - implementing countdown -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/","og_locale":"en_US","og_type":"article","og_title":"Need the event start date in specific format - implementing countdown -","og_description":"Hi, I am implementing inside the ticket area of each event &#8211; smartcountdown shortcode. By so each ticket has a countdown for the sales end date. This is done by implementing the code down below into the ticket.php file (which is placed in my child-theme $ticketenddate = $ticket-&gt;end_date; if ( !empty($ticket-&gt;end_date) ) { echo do_shortcode( [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/","name":"Need the event start date in specific format - implementing countdown -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-11-02T16:50:39+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/need-the-event-start-date-in-specific-format-implementing-countdown\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Need the event start date in specific format &#8211; implementing countdown"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1186445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1186445\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1186445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}