JavaScriptããã ãã(id:nowokay)ã³ã¡ã³ããã¹ãã©ã¤ã¯ã§ããããã ãããã ãã¼ã0ã§åæã®æçµæ¥ã ãã new Date(year, month+1, 0).getDate(); (found at Determining the Number of Days in a Month with Javascript) function daysInMonth(month, year){ return 32 - new Date(year, month, 32).getDate(); } ããããããããããæ¥ä»ããã¼ã«ãªã¼ãã¼ããã¦åºç¤å¤ããå¼ãããããæ¥æ°ã®æ大å¤ããå¤ããã°ã32ã§ã40ã§ããããã ãªã ç§ãèããã®ã¯ãæåã®åæ¥ã®æ¥ã調ã¹ããã¤ã§ãDateãªãã¸ã§ã¯ããç¡é§ã§ããã function getLastDateOfMonth(year, month
{{#tags}}- {{label}}
{{/tags}}