{"id":1458,"date":"2018-11-02T15:49:00","date_gmt":"2018-11-02T08:49:00","guid":{"rendered":"http:\/\/www.sqlitetutorial.net\/?page_id=1458"},"modified":"2024-10-25T14:43:44","modified_gmt":"2024-10-25T07:43:44","slug":"sqlite-date-functions","status":"publish","type":"page","link":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/","title":{"rendered":"SQLite Date Functions"},"content":{"rendered":"\n<p>This section provides the SQLite date and time functions that help you effectively manipulate date and time data values.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-date-function\/\">DATE<\/a><\/td><td>Calculate a date value based on multiple date modifiers.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-time-function\/\">TIME<\/a><\/td><td>Calculate a&nbsp;time value based on multiple date modifiers.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-datetime-function\/\">DATETIME<\/a><\/td><td>Calculate a date &amp; time value based on one or more date modifiers.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-julianday-function\/\">JULIANDAY<\/a><\/td><td>Convert dates and times to Julian day numbers.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-unixepoch-function\/\">UNIXEPOCH<\/a><\/td><td>Return a unix timestamp of a date or datetime value.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-strftime-function\/\">STRFTIME<\/a><\/td><td>Format a date value based on a specified format string.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-current_timestamp\/\">CURRENT_TIMESTAMP<\/a><\/td><td>Return the current date and time in UTC as a string with the format YYYY-MM-DD HH:MM:SS.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-current_date\/\">CURRENT_DATE<\/a><\/td><td>Return the current date in UTC as a string with the format YYYY-MM-DD.<\/td><\/tr><tr><td><a href=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/sqlite-current_time\/\">CURRENT_TIME<\/a><\/td><td>Return the current time in UTC as a string with the format HH:MM:SS.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This section provides you with SQLite date and time functions that help you manipulate datetime data effectively.<\/p>\n","protected":false},"author":1,"featured_media":1541,"parent":0,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1458","page","type-page","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQLite Date Functions<\/title>\n<meta name=\"description\" content=\"This section provides you with SQLite date functions that help you manipulate datetime data effectively.\" \/>\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.sqlitetutorial.net\/sqlite-date-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQLite Date Functions\" \/>\n<meta property=\"og:description\" content=\"This section provides you with SQLite date functions that help you manipulate datetime data effectively.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"SQLite Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-25T07:43:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png\" \/>\n\t<meta property=\"og:image:width\" content=\"256\" \/>\n\t<meta property=\"og:image:height\" content=\"256\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\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\":\"Article\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/#\/schema\/person\/6d69b968cad0102e30d6694ed8dc6427\"},\"headline\":\"SQLite Date Functions\",\"datePublished\":\"2018-11-02T08:49:00+00:00\",\"dateModified\":\"2024-10-25T07:43:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/\"},\"wordCount\":142,\"image\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/\",\"url\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/\",\"name\":\"SQLite Date Functions\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png\",\"datePublished\":\"2018-11-02T08:49:00+00:00\",\"dateModified\":\"2024-10-25T07:43:44+00:00\",\"description\":\"This section provides you with SQLite date functions that help you manipulate datetime data effectively.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#primaryimage\",\"url\":\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png\",\"contentUrl\":\"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png\",\"width\":256,\"height\":256,\"caption\":\"SQLite Date Functions\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlitetutorial.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQLite Date Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/#website\",\"url\":\"https:\/\/www.sqlitetutorial.net\/\",\"name\":\"SQLite Tutorial\",\"description\":\"A Step-by-step SQLite Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlitetutorial.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlitetutorial.net\/#\/schema\/person\/6d69b968cad0102e30d6694ed8dc6427\",\"name\":\"admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQLite Date Functions","description":"This section provides you with SQLite date functions that help you manipulate datetime data effectively.","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.sqlitetutorial.net\/sqlite-date-functions\/","og_locale":"en_US","og_type":"article","og_title":"SQLite Date Functions","og_description":"This section provides you with SQLite date functions that help you manipulate datetime data effectively.","og_url":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/","og_site_name":"SQLite Tutorial","article_modified_time":"2024-10-25T07:43:44+00:00","og_image":[{"width":256,"height":256,"url":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#article","isPartOf":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/"},"author":{"name":"admin","@id":"https:\/\/www.sqlitetutorial.net\/#\/schema\/person\/6d69b968cad0102e30d6694ed8dc6427"},"headline":"SQLite Date Functions","datePublished":"2018-11-02T08:49:00+00:00","dateModified":"2024-10-25T07:43:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/"},"wordCount":142,"image":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png","inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/","url":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/","name":"SQLite Date Functions","isPartOf":{"@id":"https:\/\/www.sqlitetutorial.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#primaryimage"},"image":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png","datePublished":"2018-11-02T08:49:00+00:00","dateModified":"2024-10-25T07:43:44+00:00","description":"This section provides you with SQLite date functions that help you manipulate datetime data effectively.","breadcrumb":{"@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#primaryimage","url":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png","contentUrl":"https:\/\/www.sqlitetutorial.net\/wp-content\/uploads\/2018\/11\/SQLite-Date-Functions.png","width":256,"height":256,"caption":"SQLite Date Functions"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlitetutorial.net\/sqlite-date-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlitetutorial.net\/"},{"@type":"ListItem","position":2,"name":"SQLite Date Functions"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlitetutorial.net\/#website","url":"https:\/\/www.sqlitetutorial.net\/","name":"SQLite Tutorial","description":"A Step-by-step SQLite Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlitetutorial.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlitetutorial.net\/#\/schema\/person\/6d69b968cad0102e30d6694ed8dc6427","name":"admin"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages\/1458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/comments?post=1458"}],"version-history":[{"count":5,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages\/1458\/revisions"}],"predecessor-version":[{"id":3034,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/pages\/1458\/revisions\/3034"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/media\/1541"}],"wp:attachment":[{"href":"https:\/\/www.sqlitetutorial.net\/wp-json\/wp\/v2\/media?parent=1458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}