1.0.2 • Published 8 years ago

date-with-slashes v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

date-with-slashes

Utility function for converting javascript date object to string in the format 'MM/DD/YY'

import dateWithSlashes from 'date-with-slashes';

const todaySlashified = dateWithSlashes(new Date());

console.log(todaySlashified); // it's May 2, 2016 so this will log '5/2/16'

// with four digit year
const todaySlashifiedFour = dateWithSlashes(new Date(), true);

console.log(todaySlashifiedFour); // it's May 2, 2016 so this will log '5/2/2016'

NPM

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago