yesterday
I needed to pass yesterday’s date to a Windows program from the command line in a scheduled job, so I wrote yesterday to generate yesterday’s date and output it to the command line. I call it from a .cmd script which sticks it into an environment variable which I then pass to the app. Simple, straightforward, slightly stupid, sweet.