New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

format-date

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

format-date

Takes a string and a date object, returns what you expect

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

format-date

Takes a string and a date object, returns what you expect

Example:

var formatDate = require('format-date')

formatDate('{month}/{day}/{year}', new Date);
// => 21/09/2014

formatDate('{hours}:{minutes}:{seconds} {day-name}', new Date);
// => 13:30:53 Monday

formatDate('{month-name} {year}', new Date)
// => January 2014

Install

$ npm install format-date

Reference

  • day
  • day-name
  • month
  • month-name
  • year
  • hours
  • minutes
  • seconds

Keywords

FAQs

Package last updated on 01 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc