If you want to display the date and time on your Mac Terminal, you can make use of the date command.
Example:% date
Thu Sep 6 11:56:15 EST 2023
If you wish to change the date and time of your Mac device, you can make use of the same date command with elevated privileges as follows,
Change Date and Time
% sudo date 090712002023.30
Password:
Thu Sep 7 12:00:30 EST 2023
The date/time format string: mmddHHMMyyyy.ss
Format | Description | Valid Values |
---|---|---|
mm | Month (01-12) | 01 to 12 |
dd | Day (01-31) | 01 to 31 |
HH | Hour (00-23) | 00 to 23 |
MM | Minute (00-59) | 00 to 59 |
yyyy | Year (e.g., 2021) | Any valid year |
ss | Second (00-61) | 00 to 61 (allowing for leap seconds) |

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to MacOS,
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
More Posts:
- Java was started but returned exit code=13 [Eclipse] - Eclipse
- How to Auto Save a file in Notepad++ - NotepadPlusPlus
- Java - How to set custom thread name? - Java
- How to create Gradle Multi-Project in IntelliJ - Gradle
- How to Copy Entire Directory to another Directory in Linux - Linux
- C#.Net error The underlying connection was closed: An unexpected error occurred on a send - SharePoint
- 21: Program to Delete File or Folder in Python - Python-Programs
- Increase Android Emulator Timeout time - Android