1.0.1 • Published 5 years ago

manipulate-date v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

manipulate-date

Module to manipulate based on my necessities

Formats

Date

ToDateBRConcatenate

Convert date time to format DDMMYYYY (Date: 07 November 2019)

Example
const converter = require('./index')

var date = new Date();

const newFormatDateBR = converter.ToDateBRConcatenate(date)
console.log(newFormatDateBR)

->07102019<-

ToDateUSConcatenate

Convert date time to format MMDDYYYY (Date: 07 November 2019)

Example
const converter = require('./index')

var date = new Date();

const newFormatDateUS = converter.ToDateUSConcatenate(date)
console.log(newFormatDateUS)

->10072019<-

ToDateEUConcatenate

Convert date time to format YYYYMMDD (Date: 07 November 2019)

Example
const converter = require('./index')

var date = new Date();

const newFormatDateEU = converter.ToDateEUConcatenate(date)
console.log(newFormatDateEU)

->20190710<-

SumDay

Sum day and returning basead on value parameter The format is basead on previous functions

Parameters
Date -> Date on date format
Value -> Value to be add on date (minus values are allowed)
Format -> 'BR' => Brazilian, 'US' => American, 'EU' => European
Parse -> Style of output date (concat, slash-separator, dot-separator and other) 
  AVAILABLE PARSE STYLE
    CONCAT
Example

Hour

ToHourBRConcat

AM/PM FORMAT Convert time to format HHMMSS (Date: 07 November 2019 18:03:15)

Example
const converter = require('./index')

var date = new Date();

const newFormatHourBR = converter.ToHourBRConcat(date)
console.log(newFormatDateEU)

->180315<-

Date/Time

1.0.1

5 years ago

1.0.0

5 years ago