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. :: http://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 uploaded: 2017-08-21, 14:26