{"id":4519,"date":"2023-06-21T12:23:18","date_gmt":"2023-06-21T11:23:18","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=4519"},"modified":"2023-06-21T12:23:36","modified_gmt":"2023-06-21T11:23:36","slug":"date","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/mysql\/datetime\/date","title":{"rendered":"Date"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Setting Date column to the current date<\/h4>\n\n\n\n<p>Just use Now() as you would for a DateTime<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  MyDateColumn = NOW(),<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">WHERE based on a date<\/h4>\n\n\n\n<p>The same as for a DateTime column:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  WHERE MyDateColumn &lt; DATE_SUB(now(), INTERVAL 180 DAY)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Setting Date column to the current date Just use Now() as you would for a DateTime WHERE based on a date The same as for a DateTime column:<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[257],"tags":[],"class_list":["post-4519","post","type-post","status-publish","format-standard","hentry","category-datetime"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=4519"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4519\/revisions"}],"predecessor-version":[{"id":4521,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4519\/revisions\/4521"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=4519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=4519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=4519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}