Click to See Complete Forum and Search --> : how do I change the day of the month by command line?


360
04-09-2001, 10:53 PM
how do I change the day of the month by command line?

DMR
04-10-2001, 01:04 AM
When you say "change the day of the month", do you mean without changing the corresponding date? If so, I don't think you can, but I could be wrong.

PLBlaze
04-10-2001, 01:35 AM
Consult your friendly man date.Hope this helps.

Craig McPherson
04-10-2001, 04:55 AM
date --set DATESTRING

Replace DATESTRING with the current date. I'm not sure exactly what format it expects it in, but read the manpage for the date command -- you can tell it what format your date string is in by passing other options to it. Remember that Unix's native "date format" is the number of seconds that have elapsed since 1970, so you'll probably want to tell the date command that you'll be entering the date in a more human-readable format.