{"id":1396,"date":"2015-04-19T11:50:42","date_gmt":"2015-04-19T02:50:42","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=1396"},"modified":"2015-08-26T02:06:51","modified_gmt":"2015-08-25T17:06:51","slug":"%e6%97%a5%e4%bb%98%e6%99%82%e5%88%bb%ef%bc%9a%e6%97%a5%e4%bb%98%e3%81%8b%e3%82%89%e6%9b%9c%e6%97%a5%e3%82%92%e5%8f%96%e5%be%97%ef%bc%88-weekday-%e9%96%a2%e6%95%b0%e3%80%81weekdayname-%e9%96%a2","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/%e6%97%a5%e4%bb%98%e6%99%82%e5%88%bb%ef%bc%9a%e6%97%a5%e4%bb%98%e3%81%8b%e3%82%89%e6%9b%9c%e6%97%a5%e3%82%92%e5%8f%96%e5%be%97%ef%bc%88-weekday-%e9%96%a2%e6%95%b0%e3%80%81weekdayname-%e9%96%a2\/","title":{"rendered":"\u65e5\u4ed8\u6642\u523b\uff1a\u65e5\u4ed8\u304b\u3089\u66dc\u65e5\u3092\u53d6\u5f97\uff08 Weekday \u95a2\u6570\u3001WeekdayName \u95a2\u6570 \uff09"},"content":{"rendered":"<h2>Weekday \u95a2\u6570\uff08\u65e5\u4ed8\u304b\u3089\u66dc\u65e5\u3092\u8868\u3059\u6570\u5024\u3092\u8fd4\u3059\uff09\u306e\u4f7f\u3044\u65b9<\/h2>\n<br \/>\n<div class=\"m30-l\">\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p><em>weekday_number<\/em> = <strong>Weekday<\/strong> ( <em>date<\/em> [, <em>firstdayofweek<\/em> ] )<\/p>\n<\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>date&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u65e5\u4ed8\u3092\u8868\u3059\u6587\u5b57\u5217\u30fb\u6570\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>firstdayofweek&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u9031\u306e\u7b2c 1 \u65e5\u76ee\u306e\u66dc\u65e5\uff08\u5b9a\u6570\uff1a<a href=\"#firstdayofweek\">\u4e0b\u8868\u53c2\u7167<\/a>\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u3001<strong>\u5b9a\u6570 <span class=\"red\">vbSunday<\/span><\/strong> \u3092\u6307\u5b9a\u3057\u305f\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>weekday_number&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u4f55\u66dc\u65e5\u3067\u3042\u308b\u304b\u3092\u8868\u3059\u6574\u6570\u3092\u8868\u3059\u30d0\u30ea\u30a2\u30f3\u30c8\u578b (\u5185\u90e8\u51e6\u7406\u5f62\u5f0f Integer) \u306e\u5024\u30021 \uff5e 7 \u306e\u6570\u5024\u3067\u3001<strong>\u5f15\u6570 <em><span class=\"red\">firstdayofweek<\/span><\/em><\/strong> \u306e\u5024\u306b\u3088\u3063\u3066\u7d50\u679c\u306f\u5909\u5316\u3057\u307e\u3059\u3002\uff08 <em><span class=\"red\"><strong>firstdayofweek<\/strong><\/span><\/em> \u3067\u6307\u5b9a\u3057\u305f\u66dc\u65e5\u3092\u300c1\u300d\u3068\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002\uff09<\/li>\n<\/ul>\n<p><\/p>\n<p class=\"caution4\">\u5f15\u6570\u306e <em>date<\/em> \u304c Null \u5024\u3092\u542b\u3080\u5834\u5408\u306f\u3001Null \u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p id=\"firstdayofweek\" class=\"caution4\">\u66dc\u65e5\u3092\u8868\u3059\u5b9a\u6570\uff08 <em>firstdayofweek<\/em> \uff09<\/p>\n<table>\n<tr>\n<td align = \"center\" width=\"80\" bgcolor=\"#ffffcc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"120\" bgcolor=\"#ffffcc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffcc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td align = \"center\">0<\/td>\n<td align = \"center\">vbUseSystem<\/td>\n<td>NLS\uff08\u30b7\u30b9\u30c6\u30e0\u306e\u5404\u56fd\u5bfe\u5fdc\uff09API\u306e\u8a2d\u5b9a\u5024\u3092\u4f7f\u7528<\/td>\n<\/tr>\n<tr>\n<td align = \"center\">1\uff08\u65e2\u5b9a\u5024\uff09<\/td>\n<td align = \"center\">vbSunday<\/td>\n<td>\u65e5\u66dc<\/td>\n<\/tr>\n<tr>\n<td align = \"center\">2<\/td>\n<td align = \"center\">vbMonday<\/td>\n<td>\u6708\u66dc<\/td>\n<\/tr>\n<tr>\n<td align = \"center\">3<\/td>\n<td align = \"center\">vbTuesday<\/td>\n<td>\u706b\u66dc<\/td>\n<\/tr>\n<tr>\n<td align = \"center\">4<\/td>\n<td align = \"center\">vbWednesday<\/td>\n<td>\u6c34\u66dc<\/td>\n<tr>\n<td align = \"center\">5<\/td>\n<td align = \"center\">vbThursday<\/td>\n<td>\u6728\u66dc<\/td>\n<\/tr>\n<tr>\n<td align = \"center\">6<\/td>\n<td align = \"center\">vbFriday<\/td>\n<td>\u91d1\u66dc<\/td>\n<\/tr>\n<tr>\n<td align = \"center\">7<\/td>\n<td align = \"center\">vbSaturday<\/td>\n<td>\u571f\u66dc<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<br \/><br \/>\n<h2>WeekdayName \u95a2\u6570\uff08\u65e5\u4ed8\u304b\u3089\u66dc\u65e5\u540d\u3092\u8fd4\u3059\uff09\u306e\u4f7f\u3044\u65b9<\/h2>\n<br \/>\n<div class=\"m30-l\">\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p><em>weekday_string<\/em> = <strong>WeekdayName<\/strong> ( <em>weekday_number<\/em> [, <em>abbreviate<\/em>, <em>firstdayofweek<\/em> ] )<\/p>\n<\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>weekday_number&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u66dc\u65e5\u3092\u793a\u3059\u6570\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u5404\u66dc\u65e5\u3092\u8868\u3059\u6570\u5024\u306f\u3001\u5f15\u6570\u306e <em>firstdayofweek<\/em> \u306e\u8a2d\u5b9a\u5024\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>abbreviate&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u66dc\u65e5\u540d\u3092\u7701\u7565\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u793a\u3059\u30d6\u30fc\u30eb\u5024\uff08 True\uff1a\u7701\u7565\u3059\u308b \uff0f False\uff1a\u7701\u7565\u3057\u306a\u3044 \uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u53ef \u21d2 \u898f\u5b9a\u5024\uff1aFalse\uff09<\/li>\n<li>firstdayofweek&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u9031\u306e\u7b2c 1 \u65e5\u76ee\u306e\u66dc\u65e5\uff08\u5b9a\u6570\uff1a<a href=\"#firstdayofweek\">Weekday \u95a2\u6570\u300c\u66dc\u65e5\u3092\u8868\u3059\u5b9a\u6570\u300d\u53c2\u7167<\/a>\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u3001<strong>\u5b9a\u6570 <span class=\"red\">vbSunday<\/span><\/strong> \u3092\u6307\u5b9a\u3057\u305f\u3068\u307f\u306a\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>weekday_string&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5730\u57df\u3054\u3068\u306e\u66dc\u65e5\u3092\u8868\u3059\u6587\u5b57\u5217\u3002<br \/>\u65e5\u672c\uff08<em>abbreviate<\/em>\uff1aFalse\uff09\uff1a\u300c\u65e5\u66dc\u65e5\u300d\u300c\u6708\u66dc\u65e5\u300d\u300c\u706b\u66dc\u65e5\u300d\u2026\u300c\u571f\u66dc\u65e5\u300d<br \/>\u65e5\u672c\uff08<em>abbreviate<\/em>\uff1aTrue\uff09\uff1a\u300c\u65e5\u300d\u300c\u6708\u300d\u300c\u706b\u300d\u2026\u300c\u571f\u300d<\/li>\n<\/ul>\n<br \/>\n<\/div>\n<br \/><br \/>\n<h2>Weekday \u95a2\u6570\u3001WeekdayName \u95a2\u6570<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Weekday \u95a2\u6570\u3001WeekdayName \u95a2\u6570\u306e\u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Weekday()\r\n\r\n    Dim MyDate1, MyDate2, MyWeekDay1, MyWeekDay2\r\n    \r\n    MyDate1 = #1\/1\/2000#\r\n    MyDate2 = \"2015\/4\/1\"\r\n    \r\n    MyWeekDay1 = Weekday(MyDate1)           '\u9031\u306e\u7b2c1\u65e5\u76ee\u306e\u66dc\u65e5\u306f\u7701\u7565\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u65e5\u66dc\u65e5\r\n    MyWeekDay2 = Weekday(MyDate2, vbMonday) '\u9031\u306e\u7b2c1\u65e5\u76ee\u306e\u66dc\u65e5\u306f\u6708\u66dc\u65e5\r\n\r\n    MsgBox MyWeekDay1 & \"\uff1a\" & WeekdayName(MyWeekDay1) & Chr(13) & _\r\n           MyWeekDay2 & \"\uff1a\" & WeekdayName(MyWeekDay2, True, vbMonday)\r\n           \r\n    \r\n\r\nEnd Sub\r\n\u3000\r\n<\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/weekday01.jpg?ssl=1\" rel=\"lightbox[1396]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/weekday01.jpg?resize=154%2C196&#038;ssl=1\" alt=\"Weekday \u95a2\u6570\u30fbWeekdayName \u95a2\u6570\u3000\u4f7f\u7528\u4f8b\" width=\"154\" height=\"196\" class=\"alignnone size-full wp-image-1401\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>Weekday \u95a2\u6570\uff08\u65e5\u4ed8\u304b\u3089\u66dc\u65e5\u3092\u8868\u3059\u6570\u5024\u3092\u8fd4\u3059\uff09\u306e\u4f7f\u3044\u65b9 \u3010\u66f8\u5f0f\u3011 week &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[37],"tags":[63,130,131,38,132],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/weekday01.jpg?fit=154%2C196&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-mw","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1396"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=1396"}],"version-history":[{"count":13,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1396\/revisions"}],"predecessor-version":[{"id":3373,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1396\/revisions\/3373"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/1401"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=1396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=1396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=1396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}