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

@fattureincloud/madbit-js-dates

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fattureincloud/madbit-js-dates

MadBit javascript library for manipulating and displaying dates

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

MADBIT JS DATES

Version badge   License badge


Summary

MadBit JS Dates is a library used to manipulate and display dates. At the moment it uses date-fns under the hood.

Support english, italian and spanish languages.


How do I get set up?

# Npm
npm install madbit-js-dates

# Yarn
yarn add madbit-js-dates

How to use it

import format from 'madbit-js-dates/format'

format('2023-07-07', 'dd/MM/yyyy', 'it')

Shortcuts

Parsable shortcutsCorresponding value
'now'current date and time
'NOW'current date and time
'yesterday'yesterday date at this time
'YESTERDAY'yesterday date at this time
'tomorrow'tomorrow date at this time
'TOMORROW'tomorrow date at this time

Format shortcutsCorresponding format
'SQL'SQL date format (YYYY-MM-DD)
'SQL+T'SQL datetime format (YYYY-MM-DD HH:mm:ss)
'IT'Italian date format (DD/MM/YYYY)
'IT+T'Italian datetime format (DD/MM/YYYY HH:mm:ss)
'IT_FULL'Italian date with month name (Ex. 22 May 2000)
'IT_FULL+T'Italian date and time with month name (Ex. 22 May 2000 13:34:55)


Developed by

Michele Menegatti

Keywords

FAQs

Package last updated on 04 Dec 2023

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