You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can i change date and time through terminal!?

Hey,


am using macbook pro with macOS sierras, i want to change date and time through terminal..


can i anyone help me!?

Posted on Mar 13, 2019 8:00 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 13, 2019 10:01 AM

Hi, Hilalfromznz !


In the Terminal window, you will type the following command, followed by pressing return :


date 0101120019


The convention is as follows:


The first two numbers = month

Numbers three and four = day

Numbers five through eight = time (in 24 hour format, e.g. two in the afternoon is 14:00)

Numbers nine and ten = year.


I hope this helps you, and good luck !

3 replies
Question marked as Top-ranking reply

Mar 13, 2019 10:01 AM in response to Hilalfromznz

Hi, Hilalfromznz !


In the Terminal window, you will type the following command, followed by pressing return :


date 0101120019


The convention is as follows:


The first two numbers = month

Numbers three and four = day

Numbers five through eight = time (in 24 hour format, e.g. two in the afternoon is 14:00)

Numbers nine and ten = year.


I hope this helps you, and good luck !

How can i change date and time through terminal!?

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