Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for lastdayofmonth_php.bat

(view source code of lastdayofmonth_php.bat as plain text)

  1. :: https://www.robvanderwoude.com/batchphp.php
  2. :: Usage:   LastDayOfMonth.bat  month  year
  3. :: Where:   month and year are integers
  4. :: Example: LastDayOfMonth.bat 2 2008 will return 29
  5. @IF NOT "%~2"=="" PHP -r "print(strftime(\"%%d\", mktime(0, 0, 0, %~1 + 1, 0, %~2)));"
  6.  

page last modified: 2024-04-16; loaded in 0.0119 seconds