SETDOM sets an environment variable named DOM to the current day of the month. This requires the use of CHANGE.COM, a PC Magazine utility, which I've included in this zipfile.