@echo off
cls
:: ---------------------------------------------------------------------
:: The simplest way to get information about last month is to subtract
:: 1 day from the first day of this month ...
:: ---------------------------------------------------------------------
Fdate /Fsub /n1 /att-01-tttt /omm /p"Last month was.................: "
Fdate /Fsub /n1 /att-01-tttt /occyy /p"Last month occurred in the year: "
Fdate /Fsub /n1 /att-01-tttt /odd /p"The last day of last month was : "
Fdate /Fsub /n1 /att-01-tttt /od1 /p"The last day of last month was : "