Tag: date

Use DOS Batch to show last month date with the date command

Use a DOS script to automate a process where by using the date /T command would return the previous month, rather than the current month. This actually sounds easier than it is. For the desired results, a couple of conditions were considered. Firstly, if in the month of January or one, then the subtracted value of one minus one equals…

Read More »
Linux Logo

Linux server with incorrect date [FIXED]

Every now and again, a server may lose its date and time. One pesky server is continuously using the incorrect date and time. If there was only a way to change the system date. There is, and the easiest way to correct this is by using a simple little command called – date. There are a couple of ways to…

Read More »