Skip to content

marceloxp/strnow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strnow

Get formated date and time (YYYY-MM-DD HH:mm:ss)

npm version License: MIT

Installation

yarn add strnow --dev

or

npm install strnow --save-dev

Usage

const strnow = require('strnow');
const str_now = strnow.get();
console.log(str_now);
// OUTPUT EXAMPLE: 2018-07-19 14:21:40