Created
          June 29, 2022 02:08 
        
      - 
      
 - 
        
Save szaranger/fba6bab3e439152aa0c1652b7c79ec57 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const date = Temporal.Now.plainDateISO(); // Gets the current date | |
| date.toString(); // returns the date in ISO 8601 date format | |
| // If you additionally want the time: | |
| Temporal.Now.plainDateTimeISO().toString(); // date and time in ISO 8601 format | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment