5æ29æ¥ãBrandon Dongæ°ããWhy are 2025/05/28 and 2025-05-28 different days in JavaScript?ãã¨é¡ããè¨äºãå ¬éããããã®è¨äºã§ã¯ãJavaScript Date ã³ã³ã¹ãã©ã¯ã¿ãæ¥ä»æååãã©ã®ããã«è§£éãããã«ãã£ã¦âåãããã«è¦ããæ¥ä»âãç°ãªãã«ã¬ã³ãã¼æ¥ã¸å¤æãããä»çµã¿ã¨ããã®æ´å²ççµç·¯ã«ã¤ãã¦è©³ããç´¹ä»ããã¦ããã以ä¸ã«ããã®å 容ãç´¹ä»ããã ãã¼ã«ã«æå»ã¨ UTC ã§æºãã Date ã®æå ã¾ãçè ã¯ã次ã®ã³ã¼ãçã§ç¾è±¡ã示ãã¦ããã console.log(new Date('2025/05/28').toDateString()); console.log(new Date('2025-05-28').toDateString()); console.log(new Date('2025-5-


{{#tags}}- {{label}}
{{/tags}}