{"id":114634,"date":"2021-10-05T16:06:38","date_gmt":"2021-10-05T07:06:38","guid":{"rendered":"https:\/\/support.questetra.com\/?p=114634"},"modified":"2023-08-22T15:10:12","modified_gmt":"2023-08-22T06:10:12","slug":"date-get-day-of-week-string-2021","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/date-get-day-of-week-string-2021\/","title":{"rendered":"#Date: Get Day of Week String"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#003e04;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#267137;color:#ffffff;border-top-left-radius:0px;border-top-right-radius:0px\">Date, Get Day of Week String<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> Gets the string for the day of the week. The notation of the day is set in the config such as &#8220;Sun,Mon,Tue,Wed,Thu,Fri,Sat&#8221; or &#8220;Closed,Open,Open,Open,Open,Open,Closed&#8221;. The beginning is Sunday.<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1\" data-anchor=\"configs\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Configs<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<ul class=\"fa-ul\">\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> A: Set Day Format in Csv (eg &#8220;(S),(M),(T),(W),(T),(F),(S)&#8221; )<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B: Set Date\/Datetime to be Determined (eg &#8220;2022-04-29&#8221; )<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li> C: Select STRING DATA that stores Name of Day (update)<span style=\"color:#990000;\"> *<\/span><\/li>\n<\/ul>\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1 su-spoiler-closed\" data-anchor=\"script\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Script (click to open)<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS Script (engine type: 2)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\nmain();\nfunction main(){ \n\nconst strDayFormat    = configs.get( &quot;StrConfA&quot; );        \/\/\/ REQUIRED \/\/\/\/\/\/\/\/\/\/\/\/\/\n  if( strDayFormat  === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {A: Day Format} is empty \\n&quot; );\n  }\nconst strTarget       = configs.get( &quot;StrConfB&quot; );        \/\/\/ REQUIRED \/\/\/\/\/\/\/\/\/\/\/\/\/\n  if( strTarget     === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {B: Date or Datetime} is empty \\n&quot; );\n  }\n  let dateTarget      = parseDateAsMidnight( strTarget ); \/\/ the first of the date\n  engine.log( &quot; AutomatedTask ConfigLog:&quot; +\n              &quot; DayOfWeek of &quot; + strTarget + &quot; (Sun=0,Mon=1): &quot; + dateTarget.getDay() );\nconst strPocketOutput = configs.getObject( &quot;SelectConfC&quot; ); \/\/\/ REQUIRED \/\/\/\/\/\/\/\/\/\/\/\n\n\n\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (Nothing. Retrieved via Expression Language in Config Retrieving)\n\n\n\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\nlet arrDayFormat = strDayFormat.split(&quot;,&quot;);\nlet numDayId = dateTarget.getDay();\n\n\n\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\nengine.setData( strPocketOutput, arrDayFormat[ numDayId ] );\n\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\nfunction parseDateAsMidnight( str ) { \/\/ Transform date from String to Date\n  if( str === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ParseDateError:&quot; +\n                     &quot; String is empty \\n&quot; );\n  }\n  var arrNumParts = str.match( \/\\d+\/g );\n  if( arrNumParts === null ){\n    throw new Error( &quot;\\n AutomatedTask ParseDateError:&quot; +\n                     &quot; No numeric characters in: &quot; + str + &quot;\\n&quot; );\n  }\n  if( arrNumParts.length &lt; 3){\n    throw new Error( &quot;\\n AutomatedTask ParseDateError:&quot; +\n                     &quot; 3 Parts of numeric characters are needed in: &quot; + str + &quot;\\n&quot; );\n  }\n  return new Date( parseInt(arrNumParts[0], 10), \n                   parseInt(arrNumParts[1], 10) - 1, \n                   parseInt(arrNumParts[2], 10) ); \/\/ months are 0-based\n  \/\/ Note: new Date(&quot;2014-11-10&quot;) \/\/ Mon Nov 10 2014 09:00:00 GMT+0900 (JST)\n  \/\/ Note: new Date(2014, 10, 10) \/\/ Mon Nov 10 2014 00:00:00 GMT+0900 (JST)\n}\n\/*\n\nNotes:\n- When the process reaches the automated task, the day of the week of the date data is automatically determined.\n    - `YYYY-MM-DD` (date type format), `YYYY\/MM\/DD`, etc.\n    - `YYYY-MM-DD hh:mm` (datetime data format) can also be determined.\n- Set the day of the week string in CSV format.\n    - `Sun,Mon,Tue,Wed,Thu,Fri,Sat`\n    - `Closed,Open,Open,Open,Open,Open,Closed`\n    - `Sun.,Mon.,Tue.,Wed.,Thu.,Fri.,Sat.`\n    - `(S),(M),(T),(W),(T),(F),(S)`\n    - `Sun,Moon,Ares,Hermes,Zeus,Aphrodite,Cronos`\n    - `\u65e5,\u6708,\u706b,\u6c34,\u6728,\u91d1,\u571f`\n    - `\u5b9a\u4f11\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u5b9a\u4f11\u65e5`\n    - `(\u65e5),(\u6708),(\u706b),(\u6c34),(\u6728),(\u91d1),(\u571f)`\n- Commas cannot be included in the day of the week string.\n\nNotes-ja:\n- \u6848\u4ef6\u304c\u81ea\u52d5\u51e6\u7406\u5de5\u7a0b\u306b\u5230\u9054\u3057\u305f\u969b\u3001\u65e5\u4ed8\u30c7\u30fc\u30bf\u306e\u66dc\u65e5\u304c\u81ea\u52d5\u5224\u5b9a\u3055\u308c\u307e\u3059\u3002\n    - `YYYY-MM-DD` (\u65e5\u4ed8\u578b\u30c7\u30fc\u30bf\u306e\u66f8\u5f0f) \u3084 `YYYY\/MM\/DD` \u306a\u3069\n    - `YYYY-MM-DD hh:mm` (\u65e5\u6642\u578b\u30c7\u30fc\u30bf\u306e\u66f8\u5f0f) \u3082\u5224\u5b9a\u3067\u304d\u307e\u3059\u3002\n- \u66dc\u65e5\u6587\u5b57\u5217\u306f\u3001CSV\u66f8\u5f0f\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n    - `\u65e5,\u6708,\u706b,\u6c34,\u6728,\u91d1,\u571f`\n    - `\u5b9a\u4f11\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u5b9a\u4f11\u65e5`\n    - `(\u65e5),(\u6708),(\u706b),(\u6c34),(\u6728),(\u91d1),(\u571f)`\n    - `Sun,Mon,Tue,Wed,Thu,Fri,Sat`\n    - `Closed,Open,Open,Open,Open,Open,Closed`\n    - `Sun.,Mon.,Tue.,Wed.,Thu.,Fri.,Sat.`\n    - `(S),(M),(T),(W),(T),(F),(S)`\n    - `Sun,Moon,Ares,Hermes,Zeus,Aphrodite,Cronos`\n- \u66dc\u65e5\u6587\u5b57\u5217\u306b\u30ab\u30f3\u30de\u306f\u542b\u3081\u3089\u308c\u307e\u305b\u3093\u3002\n*\/\n\n<\/code><\/pre><\/div>\n\n\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image alignright\"><a href=\"#\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA5JJREFUWEfF\nl1tIFGEUgL9Zc9VM7EJ2MSMpoyyii2aFpNFTPUQUREU+VMSuEpRY+FjgS4JUBNUamFBRD5FBEN0p\nUswgShEsKrqu6QbuauXa2rYT\/2yTs7OzOttm+z8O55z\/O+c\/t5GI85FM31\/LWGQ2IbEGmSVIzAIm\n\/Nb3IPMOiWfI3EeiARteM7ZHBqhnKoNUAnYg2YxR4DvgwEo1O+keTmd4AAd2JGqAVJMX68X6kTmA\nHUck\/cgAtZwCSv\/yYr3aaWyUGdkyBnBwEYlt\/+jyoBmZS9jZrrcZDmDgef7kfOqK6rjjvENFS4Vi\nY276XM6tOUe7u509D\/f8sdu0oYlP3k9subvFiD8sEqEAwTc\/rdWckTqDwqmF1Kyo4V7nPW45b5Eg\nJZCckMyhZYd42feSM8\/PkGhJxOv3UpVfRZe3i8NPDtPY3RgOIVOqzYkhgGC2v9YmXFVeFRWLKmhz\nt5GVmsX7b+\/Jm5yH1WLlzZc3JCUk4RpwkZOeQ1piGp39nfh++uge6CY7LZvBwCCljaXc+HhDC9KP\nlTlqdQwB1HIM2K9KrstaR31xPVNSpigeCc8zx2ayNnMtFsnC54HPPOh6QJIlifUz1ysR6Bvs4+bH\nm0iSxMZZGxVQEYXV11brI3EcG+XiYxBANBno0dZ5SU4JJwtPKp7Fcjo8HSy4vEBvQvSJSaJZBQEc\n7EDivFZqlAFEVZRg54IagTpgl1HyidDGctw+N9c\/XDcycRYbu9UIPEViiVZq6+ytHF15lHGJ42K5\nnxe9L1h+dblRNTzDzlI1Am7NYFGER\/0JwIONiSqArEf8DwBgQ4oawNnvpPJxpdIHjhQcoWhaEW09\nbRx8fJATq04wb\/y8EF8iVEFQRgNg+gk8Pg9+2U+vr5eGtw2ULyrnkesRV95ewT7fTu6EXLMAmidw\nEJaEwz3Bq75X7Gvep7TigowCpeNVt1azOXuzeQCZkCQMK8PhAPwBvzIDRNfbu3Cv4nHUABBShqYb\nUbOrmdaeVqXXi0iU5ZYRIBA9gK4RmW7FItwtrhZELhRPLybdmk5ADih5IIZSRkqGmRzQteLgPAgZ\nRqNchrphJAB041g7DWNphQbTMMI4Dg6lkIVE3QdSxqT8FYPYH8L2gYgLiXqFbiUTdb140mJlC4rm\niO3otvM2X3981aqNsJKponFdSiNEIhrvDWSjXMuHIhHHHxMVIq6\/ZtpYxu3nNMbHH0n9F0u2nDBH\n85JUAAAAAElFTkSuQmCC\n\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-cloud-download-alt\"><\/i> Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1Wg5I-sirawLzDDVMJoS63yOvVJ2uOUHN\/view?usp=drivesdk\" target=\"_blank\">date-get-day-of-week-string-2021.xml<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1Afpil-t0b34kqKADV-nI2uUhNucD0Scf\/view?usp=sharing\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1Afpil-t0b34kqKADV-nI2uUhNucD0Scf\/view?usp=sharing\">date-get-day-of-week-string-2023.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-08-21 (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>for &#8220;GraalJS standard (engine-type 3)&#8221; on v15.0 or above<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-right has-small-font-size wp-block-paragraph\">2021-10-01 (C) Questetra, Inc. (MIT License)<br><a href=\"https:\/\/support.questetra.com\/en\/addons\/date-get-day-of-week-string-2021\/\">https:\/\/support.questetra.com\/addons\/date-get-day-of-week-string-2021\/<\/a><br><i class=\"fal fa-info-circle\"><\/i> The Add-on import feature is available with <span style=\"color:#4a86e8\" class=\"has-inline-color\"><strong>Professional<\/strong><\/span> edition.<br>Freely modifiable JavaScript (ECMAScript) code. No warranty of any kind.<\/p>\n\n\n<div class=\"su-divider su-divider-style-dashed\" style=\"margin:30px 0;border-width:8px;border-color:#009900\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When the process reaches the automated task, the day of the week of the date data is automatically determined.\n<ul class=\"wp-block-list\">\n<li><code>YYYY-MM-DD<\/code> (date type format), <code>YYYY\/MM\/DD<\/code>, etc.<\/li>\n\n\n\n<li><code>YYYY-MM-DD hh:mm<\/code> (datetime data format) can also be determined.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set the day of the week string in CSV format.\n<ul class=\"wp-block-list\">\n<li><code>Sun,Mon,Tue,Wed,Thu,Fri,Sat<\/code><\/li>\n\n\n\n<li><code>Closed,Open,Open,Open,Open,Open,Closed<\/code><\/li>\n\n\n\n<li><code>Sun.,Mon.,Tue.,Wed.,Thu.,Fri.,Sat.<\/code><\/li>\n\n\n\n<li><code>(S),(M),(T),(W),(T),(F),(S)<\/code><\/li>\n\n\n\n<li><code>Sun,Moon,Ares,Hermes,Zeus,Aphrodite,Cronos<\/code><\/li>\n\n\n\n<li><code>\u65e5,\u6708,\u706b,\u6c34,\u6728,\u91d1,\u571f<\/code><\/li>\n\n\n\n<li><code>\u5b9a\u4f11\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u5b9a\u4f11\u65e5<\/code><\/li>\n\n\n\n<li><code>(\u65e5),(\u6708),(\u706b),(\u6c34),(\u6728),(\u91d1),(\u571f)<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Commas cannot be included in the day of the week string.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-images\"><\/i> Capture<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-capture-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"114622\" data-permalink=\"https:\/\/support.questetra.com\/en\/maintenance\/maintenance-20251117\/attachment\/date-get-day-of-week-string-2021-capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-capture-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-title=\"date-get-day-of-week-string-2021-capture-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-capture-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-capture-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Gets the string for the day of the week. The notation of the day is set in the config such as &quot;Sun,Mon,Tue,Wed,Thu,Fri,Sat&quot; or &quot;Closed,Open,Open,Open,Open,Open,Closed&quot;. The beginning is Sunday.\" class=\"wp-image-114622\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-capture-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-capture-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-capture-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-capture-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default q-box\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-config-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"492\" data-attachment-id=\"114626\" data-permalink=\"https:\/\/support.questetra.com\/en\/maintenance\/maintenance-20251117\/attachment\/date-get-day-of-week-string-2021-config-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-config-en.png?fit=943%2C492&amp;ssl=1\" data-orig-size=\"943,492\" data-comments-opened=\"0\" data-image-title=\"date-get-day-of-week-string-2021-config-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-config-en.png?fit=943%2C492&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-config-en.png?resize=943%2C492&#038;ssl=1\" alt=\"Gets the string for the day of the week. The notation of the day is set in the config such as &quot;Sun,Mon,Tue,Wed,Thu,Fri,Sat&quot; or &quot;Closed,Open,Open,Open,Open,Open,Closed&quot;. The beginning is Sunday.\" class=\"wp-image-114626\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-config-en.png?w=943&amp;ssl=1 943w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-config-en.png?resize=600%2C313&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-config-en.png?resize=768%2C401&amp;ssl=1 768w\" sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"JwROxa0nxb\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/two-datetimes-calculate-duration-2021\/\">Two Datetimes, Calculate Duration<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Two Datetimes, Calculate Duration&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/two-datetimes-calculate-duration-2021\/embed\/#?secret=4LinLuxjZK#?secret=JwROxa0nxb\" data-secret=\"JwROxa0nxb\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Gets the string for the day of the week. The notation of the day is set in the config such as &#8220;Sun,Mon,Tue,Wed,Thu,Fri,Sat&#8221; or &#8220;Closed,Open,Open,Open,Open,Open,Closed&#8221;. The beginning is Sunday.<\/p>\n","protected":false},"author":2,"featured_media":114630,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"Gets the string for the day of the week. The notation of the day is set in the config such as \"Sun,Mon,Tue,Wed,Thu,Fri,Sat\" or \"Closed,Open,Open,Open,Open,Open,Closed\". The beginning is Sunday.","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[492,382,365,319],"faq_section":[],"class_list":["post-114634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-attendance-mgmt","tag-date","tag-easy-config-addon","tag-inquiry-response"],"jetpack_publicize_connections":[],"uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":2,"uagb_excerpt":"Gets the string for the day of the week. The notation of the day is set in the config such as \"Sun,Mon,Tue,Wed,Thu,Fri,Sat\" or \"Closed,Open,Open,Open,Open,Open,Closed\". The beginning is Sunday.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-tOW","jetpack-related-posts":[{"id":114652,"url":"https:\/\/support.questetra.com\/ja\/addons\/date-get-day-of-week-string-2021\/","url_meta":{"origin":114634,"position":0},"title":"#\u65e5\u4ed8: \u66dc\u65e5\u6587\u5b57\u5217\u306e\u53d6\u5f97","author":"IMAMURA, Genichi","date":"2021-10-05","format":false,"excerpt":"\u4efb\u610f\u65e5\u4ed8\u5024\u306e\u66dc\u65e5\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u66dc\u65e5\u306e\u8868\u8a18\u6cd5\u306f\u30b3\u30f3\u30d5\u30a3\u30b0\u306b\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070 \"\u65e5,\u6708,\u706b,\u6c34,\u6728,\u91d1,\u571f\" \u3084 \"\u5b9a\u4f11\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u55b6\u696d\u65e5,\u5b9a\u4f11\u65e5\" \u306e\u3088\u3046\u306bCSV\u66f8\u5f0f\u306b\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u5148\u982d\u306f\u65e5\u66dc\u65e5\u3067\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"\u65e5\u4ed8, \u66dc\u65e5\u6587\u5b57\u5217\u306e\u53d6\u5f97","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":76747,"url":"https:\/\/support.questetra.com\/en\/templates\/daily-report-flow-weather-record-script-task-20210318\/","url_meta":{"origin":114634,"position":1},"title":"Daily report flow-weather record (Script Task)","author":"Hirotaka NISHI","date":"2021-03-18","format":false,"excerpt":"Submits a daily report to the supervisor to be checked at [2. Report Check\/Comment] Step. Automatically retrieves weather data of the day via API and records it.","rel":"","context":"In &quot;Workflow Apps&quot;","block_context":{"text":"Workflow Apps","link":"https:\/\/support.questetra.com\/en\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/eye-catch-daily-report-flow-weather-record-script-task-20210318-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/eye-catch-daily-report-flow-weather-record-script-task-20210318-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/eye-catch-daily-report-flow-weather-record-script-task-20210318-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/eye-catch-daily-report-flow-weather-record-script-task-20210318-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/eye-catch-daily-report-flow-weather-record-script-task-20210318-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":75859,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/timer-start-event\/","url_meta":{"origin":114634,"position":2},"title":"Timer Start Event","author":"Hirotaka NISHI","date":"2019-03-19","format":false,"excerpt":"Starts a new Process at the specified time. Applies the repetition rule such as daily, weekly on Monday, or the first day of a month.","rel":"","context":"In &quot;BPMN\u30a2\u30a4\u30b3\u30f3&quot;","block_context":{"text":"BPMN\u30a2\u30a4\u30b3\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/bpmn-icon-timer-start-event-1200x675.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/bpmn-icon-timer-start-event-1200x675.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/bpmn-icon-timer-start-event-1200x675.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/bpmn-icon-timer-start-event-1200x675.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/10\/bpmn-icon-timer-start-event-1200x675.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":87503,"url":"https:\/\/support.questetra.com\/en\/addons\/fiscal-month-day-string-create\/","url_meta":{"origin":114634,"position":3},"title":"Fiscal Month-Day String, Create","author":"IMAMURA, Genichi","date":"2020-04-22","format":false,"excerpt":"Creates a date ID for fiscal year sorting. The first day of the first month of the fiscal year will be \"101\". The 25th day of the last month is \"1225\". If the fiscal year starts in Jan, the string will be the same as the calendar format \"Mdd\".","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Fiscal Month-Day String, Create","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/Fiscal-Month-Day-String-Create-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/Fiscal-Month-Day-String-Create-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/Fiscal-Month-Day-String-Create-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/Fiscal-Month-Day-String-Create-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/04\/Fiscal-Month-Day-String-Create-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":114674,"url":"https:\/\/support.questetra.com\/en\/addons\/date-determine-whether-business-day-2021\/","url_meta":{"origin":114634,"position":4},"title":"#Date: Determine Whether Business Day","author":"IMAMURA, Genichi","date":"2021-10-05","format":false,"excerpt":"Determines whether the date value is Business Day or not. If holiday, returns the name of holiday. If Sat or Sun, returns the day name. Otherwise, returns an empty string. You can also set special holidays set by your company.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Date, Determine Whether Business Day","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-determine-whether-business-day-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-determine-whether-business-day-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-determine-whether-business-day-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-determine-whether-business-day-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-determine-whether-business-day-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":79738,"url":"https:\/\/support.questetra.com\/en\/data-items\/datetime-type\/","url_meta":{"origin":114634,"position":5},"title":"Datetime-Type","author":"Peter Glover","date":"2024-09-02","format":false,"excerpt":"Displays a field for entering the date and a field for hours and minutes, and stores the date and time entered.","rel":"","context":"In &quot;Data Items&quot;","block_context":{"text":"Data Items","link":"https:\/\/support.questetra.com\/en\/category\/data-items\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/09\/Datetime.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/date-get-day-of-week-string-2021-nocode-en.png?fit=1200%2C675&ssl=1","_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/114634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=114634"}],"version-history":[{"count":6,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/114634\/revisions"}],"predecessor-version":[{"id":149933,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/114634\/revisions\/149933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/114630"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=114634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=114634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=114634"},{"taxonomy":"faq_section","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/faq_section?post=114634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}