{"id":239,"date":"2009-11-18T15:49:45","date_gmt":"2009-11-18T10:19:45","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=239"},"modified":"2023-05-20T14:19:01","modified_gmt":"2023-05-20T14:19:01","slug":"bat-batch-file-to-create-formatted-date-ddmmyyyy-directory","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory","title":{"rendered":"bat &#8211; batch file to create formatted date time (ddmmyyyy) directory"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your desired format.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I required to make a batch script which needs file \/ directory to be created with current date \/ time stamps. Following are the code snippets for formatting date \/ time in a batch script:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Method 1: Extracting Date Components<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"color: #888888;\">FOR \/F \"TOKENS=1* DELIMS= \" %%A IN ('DATE\/T') DO SET MYDATE=%%B<br>FOR \/F \"TOKENS=1,2 eol=\/ DELIMS=\/ \" %%A IN ('DATE\/T') DO SET mm=%%B<br>FOR \/F \"TOKENS=1,2 DELIMS=\/ eol=\/\" %%A IN ('echo %MYDATE%') DO SET dd=%%B<br>FOR \/F \"TOKENS=2,3 DELIMS=\/\" %%A IN ('echo %MYDATE%') DO SET yyyy=%%B<br>set DATED=%mm%%dd%%yyyy%<br>md %DATED: =%<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Method 2: Regular Expressions for Date Manipulation<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"color: #888888;\">FOR \/F \"tokens=*\" %%A IN ('DATE\/T') DO SET MYDATE=%%A<br>#Using regular expresions to remove \/ and DAY<br>SET MYDATE=%MYDATE:\/=%<br>SET MYDATE=%MYDATE:* =%<br>md %MYDATE%<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Method 3: Extracting Date Components with Substring Operations<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"color: #888888;\">@echo off<br>set yy=%date:~-4%<br>set mm=%date:~-7,2%<br>set dd=%date:~-10,2%<br>set MYDATE=%yy%%mm%%dd%<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Section 2: Formatting Time in Batch Script<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Method 1: Parsing Hour and Minute Components<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"color: #888888;\">for \/f \"tokens=2-4 delims=\/ \" %%g in ('date \/t') do (<br>set mm=%%h<br>set dd=%%g<br>set yy=%%i<br>)<br>set MYDATE=%yy%%mm%%dd%<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Method 2: Utilizing the DATE \/T Command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"color: #888888;\">for \/f \"tokens=1-2 delims=: \" %%j in ('time \/t') do (<br>set hh=%%j<br>set mn=%%k<br>)<br>set MYTIME=%hh%%mn%<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Section 3: Combining Date and Time To merge the date and time strings obtained from the previous sections, you can use concatenation to form custom file and directory names that include both the date and time stamps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Conclusion: By mastering the techniques shared in this tutorial, you can now create batch scripts that generate file and directory names with accurate and formatted date and time stamps. Incorporating these methods will streamline your workflow and enhance organization, ensuring that your files and directories are properly labeled with time-stamped information. Use these code snippets to enhance your batch scripting projects and boost productivity.<\/p>\n","protected":false},"excerpt":{"rendered":"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[17,18,592,393,593,125],"class_list":["post-239","post","type-post","status-publish","format-standard","category-technical","tag-bat","tag-batch","tag-batch-scripting","tag-code-snippets","tag-time-stamped-files-and-directories","tag-windows"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kedar\"\/>\n\t<meta name=\"google-site-verification\" content=\"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA\" \/>\n\t<meta name=\"msvalidate.01\" content=\"116B62074CBCA1BA99B8CCE09CCF2FB8\" \/>\n\t<meta name=\"keywords\" content=\"bat,batch,batch scripting,code snippets,time-stamped files and directories,windows\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Change Is Inevitable | Kedar Vaijanapurkar&#039;s Blog for MySQL, technology and various subjects\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"bat \u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-11-18T10:19:45+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-05-20T14:19:01+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"bat \u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#article\",\"name\":\"bat \\u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable\",\"headline\":\"bat &#8211; batch file to create formatted date time (ddmmyyyy) directory\",\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"},\"datePublished\":\"2009-11-18T15:49:45+00:00\",\"dateModified\":\"2023-05-20T14:19:01+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#webpage\"},\"articleSection\":\"Technical, bat, batch, Batch scripting, code snippets, Time-stamped files and directories, windows\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/technical#listItem\",\"name\":\"Technical\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/technical#listItem\",\"position\":2,\"name\":\"Technical\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/technical\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#listItem\",\"name\":\"bat &#8211; batch file to create formatted date time (ddmmyyyy) directory\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#listItem\",\"position\":3,\"name\":\"bat &#8211; batch file to create formatted date time (ddmmyyyy) directory\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/technical#listItem\",\"name\":\"Technical\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory\",\"name\":\"bat \\u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable\",\"description\":\"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2009-11-18T15:49:45+00:00\",\"dateModified\":\"2023-05-20T14:19:01+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/\",\"name\":\"..::CHANGE is INEVITABLE::..\",\"description\":\"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"bat \u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable","description":"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory","robots":"max-image-preview:large","keywords":"bat,batch,batch scripting,code snippets,time-stamped files and directories,windows","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#article","name":"bat \u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable","headline":"bat &#8211; batch file to create formatted date time (ddmmyyyy) directory","author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"},"datePublished":"2009-11-18T15:49:45+00:00","dateModified":"2023-05-20T14:19:01+00:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#webpage"},"articleSection":"Technical, bat, batch, Batch scripting, code snippets, Time-stamped files and directories, windows"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/kedar.nitty-witty.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/technical#listItem","name":"Technical"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/technical#listItem","position":2,"name":"Technical","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/technical","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#listItem","name":"bat &#8211; batch file to create formatted date time (ddmmyyyy) directory"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#listItem","position":3,"name":"bat &#8211; batch file to create formatted date time (ddmmyyyy) directory","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/technical#listItem","name":"Technical"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author","url":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"WebPage","@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory","name":"bat \u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable","description":"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2009-11-18T15:49:45+00:00","dateModified":"2023-05-20T14:19:01+00:00"},{"@type":"WebSite","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website","url":"https:\/\/kedar.nitty-witty.com\/blog\/","name":"..::CHANGE is INEVITABLE::..","description":"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","inLanguage":"en-US","publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Change Is Inevitable | Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","og:type":"article","og:title":"bat \u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable","og:description":"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory","article:published_time":"2009-11-18T10:19:45+00:00","article:modified_time":"2023-05-20T14:19:01+00:00","twitter:card":"summary","twitter:title":"bat \u2013 batch file to create formatted date time (ddmmyyyy) directory | Change Is Inevitable","twitter:description":"In batch scripting, generating file and directory names with current date and time stamps can greatly enhance organization and workflow. This tutorial will walk you through various code snippets and techniques to format date and time in a batch script. By incorporating these methods, you can efficiently create time-stamped files and directories according to your"},"aioseo_meta_data":{"post_id":"239","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-24 17:44:00","updated":"2025-08-16 19:01:23","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/technical\" title=\"Technical\">Technical<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tbat \u2013 batch file to create formatted date time (ddmmyyyy) directory\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kedar.nitty-witty.com\/blog"},{"label":"Technical","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/technical"},{"label":"bat &#8211; batch file to create formatted date time (ddmmyyyy) directory","link":"https:\/\/kedar.nitty-witty.com\/blog\/bat-batch-file-to-create-formatted-date-ddmmyyyy-directory"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":1,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":2907,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions\/2907"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}