Cannot set date on Terminal with mmddhhmmyyyy format. Please help ?

I'm trying hard to set the date on Terminal, as I need to do this for something to work.

Please help, I have no clue what to do. It's April 8th 2014, 7:10pm and I've typed literally (without spaces):


04 08 19 10 2014


tried also

08 04 19 10 2014

04 08 19 10 14

04 08 07 10 2014


...

please help, this is super super urgent, for work, trust me not lying !!

Many thanks.

MacBook Pro, Mac OS X (10.4)

Posted on Apr 8, 2014 9:14 AM

Reply
18 replies

Apr 8, 2014 10:14 AM in response to Jo92

You must use superuser privileges to set the date but it is not necessary to enable root.


Example


sudo date mmddhhnnyyyy


... but you must substitute the actual date and time in the command that corresponds to the date format used for your location. In other words if your custom is to use a date like 8 February 2014 then reverse the mm and dd values.


Substitute numerals in the above command according to the following:


mm = month

dd = date

hh = hour (24 hour format)

nn = minutes past the hour

yyyy = year


Each of those values must be two digits except for the year which can be two or four digits. As an example if the current date and time is February 8, 2014 at 9 PM your command will be the following:


sudo date 020821002014


or


sudo date 0208210014


Either one will work. If you enter nonsensical values the system will attempt to parse the entry correctly.


Terminal will ask for your Admin Password - the same one you use when you log in to your Mac. Type it and then press the Return key. What you type will not appear, not even with •••• characters.


To verify that your change was effective just type the date command and press the Return key. Terminal will reply with the date and time. The value entered does not have to be precise, it just has to be approximate. Selecting the "Set time and date automatically" checkbox and choosing an appropriate time server in System Preferences > Date & Time will adjust your Mac's system clock to the precise time.

Apr 8, 2014 9:33 AM in response to leroydouglas

I'm trying to install Mountain Lion and a ton of ppl have had this same message appear when trying to install it (or Mavericks):

"An Error occurred while preparing the installation. Try running this application again."


The bug is actually a problem with stabilizing the date and time, and everything works for the installation just fine afterwards.

There's a thread here:

https://discussions.apple.com/thread/5467959?start=30&tstart=0


So all that is keeping me from installing this bad boy is just the freaking date and time bug. PLEASE HELP ME, I'm DESPERATE !!!! 😝

srsly though...this is work-related important...

Apr 8, 2014 10:13 AM in response to Jo92

Jo92 wrote:


dude, help please !! Tell me what to do ! Is there a way to freeze the time, or manually do something to the date withtout going through Terminal ? Or what other possible syntax, formula can I try on Terminal ??


If from superuser you can not effectively make your change,


there where 3 other options mention in the disc you linked above. Surely you tried those as well in your desperation?


Install from SafeBoot

Repair permissions

Open a new admin account and install

Apr 8, 2014 10:25 AM in response to Jo92

Jo92 wrote:


MacBook Pro, Mac OS X (10.4)


Tiger?


You don't give enough information about your Mac or your current OS


I do know you can't upgrade directly from Tiger to Mountain Lion.


OS X Mountain Lion system requirements

To install Mountain Lion, you need one of these Macs:

  • iMac (Mid 2007 or newer)
  • MacBook (Late 2008 Aluminum, or Early 2009 or newer)
  • MacBook Pro (Mid/Late 2007 or newer)
  • MacBook Air (Late 2008 or newer)
  • Mac mini (Early 2009 or newer)
  • Mac Pro (Early 2008 or newer)
  • Xserve (Early 2009)


Your Mac needs:

  • OS X v10.6.8 or OS X Lion already installed
  • 2 GB or more of memory
  • 8 GB or more of available space

Apr 8, 2014 9:24 AM in response to leroydouglas

just did. I get this:


DATE(1) BSD General Commands Manual DATE(1)


NAME

date -- display or set date and time


SYNOPSIS

date [-ju] [-r seconds] [-v [+|-]val[ymwdHMS]] ... [+output_fmt]
date [-jnu] [[[mm]dd]HH]MM[[cc]yy][.ss]
date [-jnu] -f input_fmt new_date [+output_fmt]
date [-d dst] [-t minutes_west]


DESCRIPTION

When invoked without arguments, the date utility displays the current
date and time. Otherwise, depending on the options specified, date will
set the date and time or print it in a user-defined way.


The date utility displays the date and time read from the kernel clock.
When used to set the date and time, both the kernel clock and the hard-
ware clock are updated.


Only the superuser may set the date, and if the system securelevel (see
securelevel(8)) is greater than 1, the time may not be changed by more
than 1 second.

Apr 8, 2014 10:30 AM in response to Jo92

In that case you can conclude the problem isn't related to the system date, and you probably ought to start a new Discussion describing what's going on. I understand the link to the other Discussion but your circumstances are almost certainly different.


Be sure to include all relevant details; as leroydouglas alluded to your profile information probably needs to be updated.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot set date on Terminal with mmddhhmmyyyy format. Please help ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.