Skip to content

tjconcept/js-rfc822-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rfc822-date

Convert a Date object to a rfc-822 date string

RFC 1123

RFC 1123 is an update to RFC 822 which specifies that the year MUST be 4 digits. As this library has always used 4 digits for the year, it is compatible with both.

usage

var rfc822Date = require('rfc822-date');

console.log(rfc822Date(new Date())); // 'Mon, 13 Sep 2013 14:27:00 +0200'

License

MIT © Thomas Jensen

About

Convert dates to rfc822 format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published