{"id":2047,"date":"2023-10-27T10:21:34","date_gmt":"2023-10-27T02:21:34","guid":{"rendered":"https:\/\/www.yohz.com\/blogs\/?p=2047"},"modified":"2023-10-27T10:29:15","modified_gmt":"2023-10-27T02:29:15","slug":"using-date-and-time-values-in-your-file-naming-convention","status":"publish","type":"post","link":"https:\/\/www.yohz.com\/blogs\/2023\/10\/27\/using-date-and-time-values-in-your-file-naming-convention\/","title":{"rendered":"Using date and time values in your file naming convention"},"content":{"rendered":"<p>In <a href=\"https:\/\/www.yohz.com\/siv8_details.htm\">SQL Image Viewer<\/a>, <a href=\"https:\/\/www.yohz.com\/aole_details.htm\">Access OLE Export<\/a>, and <a href=\"https:\/\/www.yohz.com\/sbe_details.htm\">SQL Blob Export<\/a>, you can use date values in the file naming convention.<\/p>\n<p>In this query, we select the <strong>ID<\/strong> (integer), <strong>content<\/strong> (blob), and <strong>lastupdated<\/strong> (datetime) fields.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2048\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime01.png\" alt=\"\" width=\"613\" height=\"178\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime01.png 613w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime01-300x87.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/p>\n<p>To use the date value from the <strong>lastupdated<\/strong> field, include it in the file naming convention value.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2049\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime02.png\" alt=\"\" width=\"632\" height=\"349\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime02.png 632w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime02-300x166.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime02-624x345.png 624w\" sizes=\"(max-width: 632px) 100vw, 632px\" \/><\/p>\n<p>The file name then uses the default format of <strong>yyyymmdd<\/strong> to format the date value.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2051\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime04.png\" alt=\"\" width=\"627\" height=\"169\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime04.png 627w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime04-300x81.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime04-624x168.png 624w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/p>\n<p>You can also format the date value differently using date and time specifiers.\u00a0 For e.g. using <strong>&lt;LASTUPDATE:yyyy_mm&gt;<\/strong> indicates that we only want to use the year and month elements separated by an underscore character.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2052\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime05.png\" alt=\"\" width=\"620\" height=\"349\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime05.png 620w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime05-300x169.png 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>resulting in<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2053\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime06.png\" alt=\"\" width=\"624\" height=\"197\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime06.png 624w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime06-300x95.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<p>You can also use the time values e.g. <strong>hhnn<\/strong> indicates we want to use the hour and minute values:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2054\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime07.png\" alt=\"\" width=\"632\" height=\"343\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime07.png 632w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime07-300x163.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime07-624x339.png 624w\" sizes=\"(max-width: 632px) 100vw, 632px\" \/><\/p>\n<p>resulting in this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2055\" src=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime08.png\" alt=\"\" width=\"630\" height=\"186\" srcset=\"https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime08.png 630w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime08-300x89.png 300w, https:\/\/www.yohz.com\/blogs\/wp-content\/uploads\/2023\/10\/datetime08-624x184.png 624w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>You can use both and and time values by using the appropriate specifiers.\u00a0 The thing to note is that minute specifiers use <strong>n<\/strong> or <strong>nn<\/strong>, instead of <strong>m<\/strong> or <strong>mm<\/strong>, as those are month specifiers.<\/p>\n<p>A list of all date and time specifiers available <a href=\"https:\/\/www.yohz.com\/help\/sqlblobexport\/dateandtimeformatspecifier.htm\">here<\/a> for reference.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.yohz.com\/blogs\/2023\/10\/27\/using-date-and-time-values-in-your-file-naming-convention\/\" action=\"like\" colorscheme=\"light\" layout=\"button\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/www.yohz.com\/blogs\/2023\/10\/27\/using-date-and-time-values-in-your-file-naming-convention\/\" data-type=\"button\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>In SQL Image Viewer, Access OLE Export, and SQL Blob Export, you can use date values in the file naming convention. In this query, we select the ID (integer), content (blob), and lastupdated (datetime) fields. To use the date value from the lastupdated field, include it in the file naming convention value. The file name [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17,44,11],"tags":[18,48,12],"_links":{"self":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/2047"}],"collection":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/comments?post=2047"}],"version-history":[{"count":1,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/2047\/revisions"}],"predecessor-version":[{"id":2056,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/posts\/2047\/revisions\/2056"}],"wp:attachment":[{"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/media?parent=2047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/categories?post=2047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yohz.com\/blogs\/wp-json\/wp\/v2\/tags?post=2047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}