1.2.6 • Published 6 years ago

date-conversion v1.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Instructions

A Time format conversion methods collection

Build Setup

// install date-conversion
npm install date-conversion -S

Use for Vue

// path: main.js

import date_conversion from 'date-conversion'

Vue.prototype.date_conversion = date_conversion

Method names

方法名参数类型说明
formatDatenew Date()-格局化日期yyyy-MM-dd
getMonthDays>=0Number获得某月的天数(注:从0开始)
getQuarterStartMonth--获得本季度的开端月份
getWeekStartDate--获得本周的开端日期
getWeekEndDate--获得本周的停止日期
getMonthStartDate--获得本月的开端日期
getMonthEndDate--获得本月的停止日期
getMonthEndDate--获得上月开端日期
getLastMonthEndDate--获得上月停止日期
getQuarterStartDate--获得本季度的开端日期
getQuarterEndDate--获得本季度的停止日期
1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago