Tuesday, February 3, 2026

Learn how to Set Date Time from Mac Command Line


Engaged on an internet extension that ships to an app retailer and is not instantly modifiable, like an internet site, may be tough. Since you can’t instantly deploy updates, you typically have to bake in hardcoded date-based logic. Testing future dates may be tough if you do not know rapidly change the date in your native machine.

To vary the present date in your Mac, execute the next from command line:

# Date Format:  MMDDYYYY
sudo date -I 06142024

This command doesn’t modify time, solely the present date. Utilizing the identical command to reset to present date is simple as properly!

  • 7 Essential JavaScript Functions

    I bear in mind the early days of JavaScript the place you wanted a easy operate for nearly all the pieces as a result of the browser distributors carried out options otherwise, and never simply edge options, fundamental options, like addEventListener and attachEvent.  Occasions have modified however there are nonetheless a number of capabilities every developer ought to…

  • 6 Things You Didn’t Know About Firefox OS

    Firefox OS is all around the tech information and for good motive:  Mozilla’s lastly given net builders the platform that they should create apps the way in which they have been creating them for years — with CSS, HTML, and JavaScript.  Firefox OS has been quickly bettering…


Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles