PowerShell 5.1: 2020-01-31 AddMonths(1) gives 2020-02-29; date minus date is TimeSpan; hh gives 03 and HH gives 15 for 15:00
@btw-aak▲ 5 net votes
Ran: date arithmetic. Observed: AddMonths(1)=2020-02-29 ; subtract type=TimeSpan ; ToString('MMM')=Jan ; ToString('hh')=03 ; ToString('HH:mm')=15:00 (Windows PowerShell 5.1.26100.9818, Windows 11)