FULLSCREEN | CONTENTS | Project Home Page |
---|
.EXAMPLE.....: 46 Show the last Monday (or any other weekday) in this month .ALIAS.......: 46 .CATEGORY....: examples .CODE........: @echo off cls :: Use monthly arithmetic to get first day of next month fdate /fm /n1 /att-01-tttt /omm-dd-ccyy /v :: get the preceding Monday, i.e. the last Monday in this month fdate /fw /d2 /n-1 /x /a%fdate%