{"id":1059,"date":"2015-12-18T14:36:42","date_gmt":"2015-12-18T14:36:42","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=1059"},"modified":"2015-12-21T06:56:58","modified_gmt":"2015-12-21T06:56:58","slug":"working-with-date-in-oracle","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/working-with-date-in-oracle\/","title":{"rendered":"Working with Date in Oracle"},"content":{"rendered":"<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n--16-12-2015 12:33:21\r\nSELECT SYSDATE FROM dual;\r\n\r\n--16-12-2015\r\nSELECT trunc(SYSDATE) FROM dual;\r\n\r\n--16-12-2015\r\nSELECT to_date(SYSDATE) AS ToDate  FROM dual;\r\n\r\n--16-12-2015\r\nSELECT to_date(SYSDATE, 'DD-MM-YY') AS ToDate  FROM dual;\r\n\r\n--16-12-2015\r\nSELECT to_char(SYSDATE, 'DD-MM-YYYY') AS ToDate  FROM dual;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8211;16-12-2015 12:33:21 SELECT SYSDATE FROM dual; &#8211;16-12-2015 SELECT trunc(SYSDATE) FROM dual; &#8211;16-12-2015 SELECT to_date(SYSDATE) AS ToDate FROM dual; &#8211;16-12-2015 SELECT to_date(SYSDATE, &#8216;DD-MM-YY&#8217;) AS ToDate FROM dual; &#8211;16-12-2015 SELECT to_char(SYSDATE, &#8216;DD-MM-YYYY&#8217;) AS ToDate FROM dual;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[173],"tags":[],"class_list":["post-1059","post","type-post","status-publish","format-standard","hentry","category-date-functions-oracle-database-2"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=1059"}],"version-history":[{"count":1,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1059\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1059\/revisions\/1061"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=1059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=1059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=1059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}