{"id":620,"date":"2013-03-13T12:45:03","date_gmt":"2013-03-13T12:45:03","guid":{"rendered":"http:\/\/www.masterlevel.de\/blog\/?p=620"},"modified":"2014-05-31T08:07:22","modified_gmt":"2014-05-31T08:07:22","slug":"mysql-datetime-formatieren-und-wahrung-formatieren","status":"publish","type":"post","link":"https:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/","title":{"rendered":"MySQL: datetime formatieren und W\u00e4hrung formatieren"},"content":{"rendered":"<p>Wieder 2 Schnipsel die ich letztens nicht exakt im Kopf hatte&#8230;<\/p>\n<p>mysql:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\nDATE_FORMAT(date_purchased, '%d.%m.%Y') AS date\r\n\r\n<\/pre>\n<p>oder in php:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\n$date = new DateTime($orders&#x5B;'date_purchased']);\r\n$date-&gt;format('d.m.Y')\r\n<\/pre>\n<p>und<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$einzelpreis = 24.7;\r\necho number_format($einzelpreis, 2, &quot;,&quot;, &quot;.&quot;);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Wieder 2 Schnipsel die ich letztens nicht exakt im Kopf hatte&#8230; mysql: DATE_FORMAT(date_purchased, &#8218;%d.%m.%Y&#8216;) AS date oder in php: $date = new DateTime($orders&#x5B;&#8217;date_purchased&#8216;]); $date-&gt;format(&#8218;d.m.Y&#8216;) und $einzelpreis = 24.7; echo number_format($einzelpreis, 2, &quot;,&quot;, &quot;.&quot;);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,86,93,94],"tags":[],"class_list":["post-620","post","type-post","status-publish","format-standard","hentry","category-beginner","category-mysql","category-php","category-snippets"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MySQL: datetime formatieren und W\u00e4hrung formatieren - masterlevel<\/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:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"J. Adler\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/mysql-datetime-formatieren-und-wahrung-formatieren\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/mysql-datetime-formatieren-und-wahrung-formatieren\\\/\"},\"author\":{\"name\":\"J. Adler\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\"},\"headline\":\"MySQL: datetime formatieren und W\u00e4hrung formatieren\",\"datePublished\":\"2013-03-13T12:45:03+00:00\",\"dateModified\":\"2014-05-31T08:07:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/mysql-datetime-formatieren-und-wahrung-formatieren\\\/\"},\"wordCount\":58,\"commentCount\":0,\"articleSection\":[\"Beginner\",\"MySQL\",\"PHP\",\"Snippets\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/mysql-datetime-formatieren-und-wahrung-formatieren\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/mysql-datetime-formatieren-und-wahrung-formatieren\\\/\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/mysql-datetime-formatieren-und-wahrung-formatieren\\\/\",\"name\":\"MySQL: datetime formatieren und W\u00e4hrung formatieren - masterlevel\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#website\"},\"datePublished\":\"2013-03-13T12:45:03+00:00\",\"dateModified\":\"2014-05-31T08:07:22+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/mysql-datetime-formatieren-und-wahrung-formatieren\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/\",\"name\":\"masterlevel\",\"description\":\"Manche Sachen vergi\u00dft man, weil man sie nicht oft braucht - deshalb stehen sie hier...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\",\"name\":\"J. Adler\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL: datetime formatieren und W\u00e4hrung formatieren - masterlevel","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:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/","twitter_misc":{"Verfasst von":"J. Adler"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/#article","isPartOf":{"@id":"https:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/"},"author":{"name":"J. Adler","@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f"},"headline":"MySQL: datetime formatieren und W\u00e4hrung formatieren","datePublished":"2013-03-13T12:45:03+00:00","dateModified":"2014-05-31T08:07:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/"},"wordCount":58,"commentCount":0,"articleSection":["Beginner","MySQL","PHP","Snippets"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/","url":"https:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/","name":"MySQL: datetime formatieren und W\u00e4hrung formatieren - masterlevel","isPartOf":{"@id":"https:\/\/www.masterlevel.de\/blog\/#website"},"datePublished":"2013-03-13T12:45:03+00:00","dateModified":"2014-05-31T08:07:22+00:00","author":{"@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.masterlevel.de\/blog\/mysql-datetime-formatieren-und-wahrung-formatieren\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.masterlevel.de\/blog\/#website","url":"https:\/\/www.masterlevel.de\/blog\/","name":"masterlevel","description":"Manche Sachen vergi\u00dft man, weil man sie nicht oft braucht - deshalb stehen sie hier...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.masterlevel.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f","name":"J. Adler","url":"https:\/\/www.masterlevel.de\/blog\/author\/admin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/comments?post=620"}],"version-history":[{"count":7,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/620\/revisions"}],"predecessor-version":[{"id":750,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/620\/revisions\/750"}],"wp:attachment":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/media?parent=620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/categories?post=620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/tags?post=620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}