IsSameOrBefore
isSameOrBefore は、日付が別の日付と同じか以前であるかどうかを示す boolean 値を返す .isSameOrBefore()
API を追加します。
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore')
dayjs.extend(isSameOrBefore)
dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year')
isSameOrBefore は、日付が別の日付と同じか以前であるかどうかを示す boolean 値を返す .isSameOrBefore()
API を追加します。
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore')
dayjs.extend(isSameOrBefore)
dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year')