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
3 replies

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 !

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.

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.