Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At first i tried to change date to good one via gnome via 'Time and Date Settings' but when i clicked on calendar i couldn't change date. So i tried via console... date +%T -s "02:36:00" worked fine and time is set to it now... but date +%m%d -s "1019" returned old date instead of the one i'm trying to set... what's wrong?

share|improve this question
up vote 1 down vote accepted

It's happier with a format that's closer to the ISO standard year-month-day: eg. date -s "2009-10-19 13:30:00"

That would set it to 19th October 2009 at 1:30pm.

share|improve this answer

The format string only controls the output. You need to at least specify a time in your date.

date "10192125"

and optionally a year

date "101921252009"

To set only a time:

date -s "2125"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.