Giter Site home page Giter Site logo

js-date-parse's Introduction

js-date-parse

A lightweight library meant to parse strings from any arbitrary format into Date objects

Build Status

Format Specifiers

The following format specifiers are supported:

yyyy Four-digit year eg. 2004
yy Two-digit year eg. 04
M One or two-digit month eg. 4
MM Two-digit month eg. 04
MMM Short month name, one of jan,feb,mar,apr,may,jun,jul,aug,sept,oct,nov,dec
MMMM Long month name, one of january,february,march,april,may,june,july,august,september,october,november,december
d One or two-digit day eg. 4
dd Two-digit day eg. 04 ddd Short day name, one of su,mo,tu,we,th,fr,sa
dddd Long day name, one of sunday,monday,tuesday,wednesday,thursday,friday,saturday
h One or two-digit hour eg. 4
hh Two-digit hour eg. 04 m One or two-digit minute eg. 4
mm Two-digit minute eg. 04 s One or two-digit second eg. 4
ss Two-digit second eg. 04 f Tenths of a second
ff Hundreths of a second
fff Thousands of a second eg. 4
t First letter of am or pm eg. p
tt am or pm eg. pm
'text' Literal text eg. 'peter'

js-date-parse's People

Contributors

fernap3 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.