Printer Version Table of Contents Project Home Page
.EXAMPLE.....: 46 Show the last Monday (or any other weekday) in this month
.CATEGORY....: examples
.DISCUSSION..:
.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%