1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.
:unittest.dayOfYear :$created 20080616 :$changed 20080616 :$source https://www.dostips.com for %%C in ( "1/1/2008" "1/31/2008" "2/1/2008" "3/31/2008" "12/31/2008" "1/1/2009" ) do ( call:dayOfYear s "%%~C" call:Format "[35] [35]." "'%%~C'" "'%%s%%'" ) EXIT /b
---- :unittest.dayOfYear - output '1/1/2008' '1' . '1/31/2008' '31' . '2/1/2008' '32' . '3/31/2008' '91' . '12/31/2008' '366' . '1/1/2009' '1' . ----