(view source code of lastdayofmonth_php.bat as plain text)
:: https://www.robvanderwoude.com/batchphp.php
:: Usage: LastDayOfMonth.bat month year
:: Where: month and year are integers
:: Example: LastDayOfMonth.bat 2 2008 will return 29
@IF NOT "%~2"=="" PHP -r "print(strftime(\"%%d\", mktime(0, 0, 0, %~1 + 1, 0, %~2)));"
page last modified: 2024-04-16; loaded in 0.0082 seconds