1.0.6 • Published 3 months ago

utils-format v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Utils Format

Introduction

The library fulfills the requirements given by the products that I have made

Installation

npm install utils-format --save

Usage

const iDate = require('format-utils/iDate');

OR

import iDate from 'format-utils/iDate';

Available Format

iDate

Date format based on specific requirements (best suited for Vietnam)

let date = iDate(null,"Ngay {j} thang {n} nam {f}");
// Ngay 01 thang 12 nam 2021

Type of format

  • The many character represents the type of format.
    • D: day of the week
    • H: hours
    • J: day of the month
    • M: minutes
    • N: month of Vietnamese
    • O: date
    • S: seconds
    • d: day of the week of Vietnamese
    • f: years
    • h: hour of Vietnamese
    • j: day of the month of Vietnamese
    • m: minutes of Vietnamese
    • n: month of Vietnamese
    • s: seconds of Vietnamese
    • t: get time
    • u: timestamp
    • y: 2 last number of years
    • A: PM/AM
    • Month: January
    • Mo: Jan

iParam

Encode param in url

Still growing ....

1.0.6

3 months ago

1.0.5

2 years ago

1.0.4

2 years ago