|
vor 3 Wochen | |
---|---|---|
.. | ||
_lib | vor 3 Wochen | |
add | vor 3 Wochen | |
addBusinessDays | vor 3 Wochen | |
addDays | vor 3 Wochen | |
addHours | vor 3 Wochen | |
addISOWeekYears | vor 3 Wochen | |
addMilliseconds | vor 3 Wochen | |
addMinutes | vor 3 Wochen | |
addMonths | vor 3 Wochen | |
addQuarters | vor 3 Wochen | |
addSeconds | vor 3 Wochen | |
addWeeks | vor 3 Wochen | |
addYears | vor 3 Wochen | |
areIntervalsOverlapping | vor 3 Wochen | |
clamp | vor 3 Wochen | |
closestIndexTo | vor 3 Wochen | |
closestTo | vor 3 Wochen | |
compareAsc | vor 3 Wochen | |
compareDesc | vor 3 Wochen | |
constants | vor 3 Wochen | |
daysToWeeks | vor 3 Wochen | |
differenceInBusinessDays | vor 3 Wochen | |
differenceInCalendarDays | vor 3 Wochen | |
differenceInCalendarISOWeekYears | vor 3 Wochen | |
differenceInCalendarISOWeeks | vor 3 Wochen | |
differenceInCalendarMonths | vor 3 Wochen | |
differenceInCalendarQuarters | vor 3 Wochen | |
differenceInCalendarWeeks | vor 3 Wochen | |
differenceInCalendarYears | vor 3 Wochen | |
differenceInDays | vor 3 Wochen | |
differenceInHours | vor 3 Wochen | |
differenceInISOWeekYears | vor 3 Wochen | |
differenceInMilliseconds | vor 3 Wochen | |
differenceInMinutes | vor 3 Wochen | |
differenceInMonths | vor 3 Wochen | |
differenceInQuarters | vor 3 Wochen | |
differenceInSeconds | vor 3 Wochen | |
differenceInWeeks | vor 3 Wochen | |
differenceInYears | vor 3 Wochen | |
docs | vor 3 Wochen | |
eachDayOfInterval | vor 3 Wochen | |
eachHourOfInterval | vor 3 Wochen | |
eachMinuteOfInterval | vor 3 Wochen | |
eachMonthOfInterval | vor 3 Wochen | |
eachQuarterOfInterval | vor 3 Wochen | |
eachWeekOfInterval | vor 3 Wochen | |
eachWeekendOfInterval | vor 3 Wochen | |
eachWeekendOfMonth | vor 3 Wochen | |
eachWeekendOfYear | vor 3 Wochen | |
eachYearOfInterval | vor 3 Wochen | |
endOfDay | vor 3 Wochen | |
endOfDecade | vor 3 Wochen | |
endOfHour | vor 3 Wochen | |
endOfISOWeek | vor 3 Wochen | |
endOfISOWeekYear | vor 3 Wochen | |
endOfMinute | vor 3 Wochen | |
endOfMonth | vor 3 Wochen | |
endOfQuarter | vor 3 Wochen | |
endOfSecond | vor 3 Wochen | |
endOfToday | vor 3 Wochen | |
endOfTomorrow | vor 3 Wochen | |
endOfWeek | vor 3 Wochen | |
endOfYear | vor 3 Wochen | |
endOfYesterday | vor 3 Wochen | |
esm | vor 3 Wochen | |
format | vor 3 Wochen | |
formatDistance | vor 3 Wochen | |
formatDistanceStrict | vor 3 Wochen | |
formatDistanceToNow | vor 3 Wochen | |
formatDistanceToNowStrict | vor 3 Wochen | |
formatDuration | vor 3 Wochen | |
formatISO | vor 3 Wochen | |
formatISO9075 | vor 3 Wochen | |
formatISODuration | vor 3 Wochen | |
formatRFC3339 | vor 3 Wochen | |
formatRFC7231 | vor 3 Wochen | |
formatRelative | vor 3 Wochen | |
fp | vor 3 Wochen | |
fromUnixTime | vor 3 Wochen | |
getDate | vor 3 Wochen | |
getDay | vor 3 Wochen | |
getDayOfYear | vor 3 Wochen | |
getDaysInMonth | vor 3 Wochen | |
getDaysInYear | vor 3 Wochen | |
getDecade | vor 3 Wochen | |
getDefaultOptions | vor 3 Wochen | |
getHours | vor 3 Wochen | |
getISODay | vor 3 Wochen | |
getISOWeek | vor 3 Wochen | |
getISOWeekYear | vor 3 Wochen | |
getISOWeeksInYear | vor 3 Wochen | |
getMilliseconds | vor 3 Wochen | |
getMinutes | vor 3 Wochen | |
getMonth | vor 3 Wochen | |
getOverlappingDaysInIntervals | vor 3 Wochen | |
getQuarter | vor 3 Wochen | |
getSeconds | vor 3 Wochen | |
getTime | vor 3 Wochen | |
getUnixTime | vor 3 Wochen | |
getWeek | vor 3 Wochen | |
getWeekOfMonth | vor 3 Wochen | |
getWeekYear | vor 3 Wochen | |
getWeeksInMonth | vor 3 Wochen | |
getYear | vor 3 Wochen | |
hoursToMilliseconds | vor 3 Wochen | |
hoursToMinutes | vor 3 Wochen | |
hoursToSeconds | vor 3 Wochen | |
intervalToDuration | vor 3 Wochen | |
intlFormat | vor 3 Wochen | |
intlFormatDistance | vor 3 Wochen | |
isAfter | vor 3 Wochen | |
isBefore | vor 3 Wochen | |
isDate | vor 3 Wochen | |
isEqual | vor 3 Wochen | |
isExists | vor 3 Wochen | |
isFirstDayOfMonth | vor 3 Wochen | |
isFriday | vor 3 Wochen | |
isFuture | vor 3 Wochen | |
isLastDayOfMonth | vor 3 Wochen | |
isLeapYear | vor 3 Wochen | |
isMatch | vor 3 Wochen | |
isMonday | vor 3 Wochen | |
isPast | vor 3 Wochen | |
isSameDay | vor 3 Wochen | |
isSameHour | vor 3 Wochen | |
isSameISOWeek | vor 3 Wochen | |
isSameISOWeekYear | vor 3 Wochen | |
isSameMinute | vor 3 Wochen | |
isSameMonth | vor 3 Wochen | |
isSameQuarter | vor 3 Wochen | |
isSameSecond | vor 3 Wochen | |
isSameWeek | vor 3 Wochen | |
isSameYear | vor 3 Wochen | |
isSaturday | vor 3 Wochen | |
isSunday | vor 3 Wochen | |
isThisHour | vor 3 Wochen | |
isThisISOWeek | vor 3 Wochen | |
isThisMinute | vor 3 Wochen | |
isThisMonth | vor 3 Wochen | |
isThisQuarter | vor 3 Wochen | |
isThisSecond | vor 3 Wochen | |
isThisWeek | vor 3 Wochen | |
isThisYear | vor 3 Wochen | |
isThursday | vor 3 Wochen | |
isToday | vor 3 Wochen | |
isTomorrow | vor 3 Wochen | |
isTuesday | vor 3 Wochen | |
isValid | vor 3 Wochen | |
isWednesday | vor 3 Wochen | |
isWeekend | vor 3 Wochen | |
isWithinInterval | vor 3 Wochen | |
isYesterday | vor 3 Wochen | |
lastDayOfDecade | vor 3 Wochen | |
lastDayOfISOWeek | vor 3 Wochen | |
lastDayOfISOWeekYear | vor 3 Wochen | |
lastDayOfMonth | vor 3 Wochen | |
lastDayOfQuarter | vor 3 Wochen | |
lastDayOfWeek | vor 3 Wochen | |
lastDayOfYear | vor 3 Wochen | |
lightFormat | vor 3 Wochen | |
locale | vor 3 Wochen | |
max | vor 3 Wochen | |
milliseconds | vor 3 Wochen | |
millisecondsToHours | vor 3 Wochen | |
millisecondsToMinutes | vor 3 Wochen | |
millisecondsToSeconds | vor 3 Wochen | |
min | vor 3 Wochen | |
minutesToHours | vor 3 Wochen | |
minutesToMilliseconds | vor 3 Wochen | |
minutesToSeconds | vor 3 Wochen | |
monthsToQuarters | vor 3 Wochen | |
monthsToYears | vor 3 Wochen | |
nextDay | vor 3 Wochen | |
nextFriday | vor 3 Wochen | |
nextMonday | vor 3 Wochen | |
nextSaturday | vor 3 Wochen | |
nextSunday | vor 3 Wochen | |
nextThursday | vor 3 Wochen | |
nextTuesday | vor 3 Wochen | |
nextWednesday | vor 3 Wochen | |
parse | vor 3 Wochen | |
parseISO | vor 3 Wochen | |
parseJSON | vor 3 Wochen | |
previousDay | vor 3 Wochen | |
previousFriday | vor 3 Wochen | |
previousMonday | vor 3 Wochen | |
previousSaturday | vor 3 Wochen | |
previousSunday | vor 3 Wochen | |
previousThursday | vor 3 Wochen | |
previousTuesday | vor 3 Wochen | |
previousWednesday | vor 3 Wochen | |
quartersToMonths | vor 3 Wochen | |
quartersToYears | vor 3 Wochen | |
roundToNearestMinutes | vor 3 Wochen | |
secondsToHours | vor 3 Wochen | |
secondsToMilliseconds | vor 3 Wochen | |
secondsToMinutes | vor 3 Wochen | |
set | vor 3 Wochen | |
setDate | vor 3 Wochen | |
setDay | vor 3 Wochen | |
setDayOfYear | vor 3 Wochen | |
setDefaultOptions | vor 3 Wochen | |
setHours | vor 3 Wochen | |
setISODay | vor 3 Wochen | |
setISOWeek | vor 3 Wochen | |
setISOWeekYear | vor 3 Wochen | |
setMilliseconds | vor 3 Wochen | |
setMinutes | vor 3 Wochen | |
setMonth | vor 3 Wochen | |
setQuarter | vor 3 Wochen | |
setSeconds | vor 3 Wochen | |
setWeek | vor 3 Wochen | |
setWeekYear | vor 3 Wochen | |
setYear | vor 3 Wochen | |
startOfDay | vor 3 Wochen | |
startOfDecade | vor 3 Wochen | |
startOfHour | vor 3 Wochen | |
startOfISOWeek | vor 3 Wochen | |
startOfISOWeekYear | vor 3 Wochen | |
startOfMinute | vor 3 Wochen | |
startOfMonth | vor 3 Wochen | |
startOfQuarter | vor 3 Wochen | |
startOfSecond | vor 3 Wochen | |
startOfToday | vor 3 Wochen | |
startOfTomorrow | vor 3 Wochen | |
startOfWeek | vor 3 Wochen | |
startOfWeekYear | vor 3 Wochen | |
startOfYear | vor 3 Wochen | |
startOfYesterday | vor 3 Wochen | |
sub | vor 3 Wochen | |
subBusinessDays | vor 3 Wochen | |
subDays | vor 3 Wochen | |
subHours | vor 3 Wochen | |
subISOWeekYears | vor 3 Wochen | |
subMilliseconds | vor 3 Wochen | |
subMinutes | vor 3 Wochen | |
subMonths | vor 3 Wochen | |
subQuarters | vor 3 Wochen | |
subSeconds | vor 3 Wochen | |
subWeeks | vor 3 Wochen | |
subYears | vor 3 Wochen | |
toDate | vor 3 Wochen | |
weeksToDays | vor 3 Wochen | |
yearsToMonths | vor 3 Wochen | |
yearsToQuarters | vor 3 Wochen | |
CHANGELOG.md | vor 3 Wochen | |
LICENSE.md | vor 3 Wochen | |
README.md | vor 3 Wochen | |
index.js | vor 3 Wochen | |
index.js.flow | vor 3 Wochen | |
package.json | vor 3 Wochen | |
types.js | vor 3 Wochen | |
typings.d.ts | vor 3 Wochen |
date-fns provides the most comprehensive, yet simple and consistent toolset
for manipulating JavaScript dates in a browser & Node.js.
import { compareAsc, format } from 'date-fns'
format(new Date(2014, 1, 11), 'yyyy-MM-dd')
//=> '2014-02-11'
const dates = [
new Date(1995, 6, 2),
new Date(1987, 1, 11),
new Date(1989, 6, 10),
]
dates.sort(compareAsc)
//=> [
// Wed Feb 11 1987 00:00:00,
// Mon Jul 10 1989 00:00:00,
// Sun Jul 02 1995 00:00:00
// ]
The library is available as an npm package. To install the package run:
npm install date-fns --save
# or with yarn
yarn add date-fns
See date-fns.org for more details, API, and other docs.