Last active
          September 23, 2018 01:27 
        
      - 
      
- 
        Save hyeonseok/5b31816009d29e635d99 to your computer and use it in GitHub Desktop. 
    Now in "Ymd His" format.
  
        
  
    
      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 now = new Date(); | |
| const YMD = `${now.getFullYear()}-${`0${now.getMonth() + 1}`.slice(-2)}-${`0${now.getDate()}`.slice(-2)}`; | |
| const His = `${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}` | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment