25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit 3 yıl önce
..
_lib First Commit 3 yıl önce
add First Commit 3 yıl önce
addBusinessDays First Commit 3 yıl önce
addDays First Commit 3 yıl önce
addHours First Commit 3 yıl önce
addISOWeekYears First Commit 3 yıl önce
addMilliseconds First Commit 3 yıl önce
addMinutes First Commit 3 yıl önce
addMonths First Commit 3 yıl önce
addQuarters First Commit 3 yıl önce
addSeconds First Commit 3 yıl önce
addWeeks First Commit 3 yıl önce
addYears First Commit 3 yıl önce
areIntervalsOverlapping First Commit 3 yıl önce
closestIndexTo First Commit 3 yıl önce
closestTo First Commit 3 yıl önce
compareAsc First Commit 3 yıl önce
compareDesc First Commit 3 yıl önce
constants First Commit 3 yıl önce
differenceInBusinessDays First Commit 3 yıl önce
differenceInCalendarDays First Commit 3 yıl önce
differenceInCalendarISOWeekYears First Commit 3 yıl önce
differenceInCalendarISOWeeks First Commit 3 yıl önce
differenceInCalendarMonths First Commit 3 yıl önce
differenceInCalendarQuarters First Commit 3 yıl önce
differenceInCalendarWeeks First Commit 3 yıl önce
differenceInCalendarYears First Commit 3 yıl önce
differenceInDays First Commit 3 yıl önce
differenceInHours First Commit 3 yıl önce
differenceInISOWeekYears First Commit 3 yıl önce
differenceInMilliseconds First Commit 3 yıl önce
differenceInMinutes First Commit 3 yıl önce
differenceInMonths First Commit 3 yıl önce
differenceInQuarters First Commit 3 yıl önce
differenceInSeconds First Commit 3 yıl önce
differenceInWeeks First Commit 3 yıl önce
differenceInYears First Commit 3 yıl önce
docs First Commit 3 yıl önce
eachDayOfInterval First Commit 3 yıl önce
eachMonthOfInterval First Commit 3 yıl önce
eachWeekOfInterval First Commit 3 yıl önce
eachWeekendOfInterval First Commit 3 yıl önce
eachWeekendOfMonth First Commit 3 yıl önce
eachWeekendOfYear First Commit 3 yıl önce
eachYearOfInterval First Commit 3 yıl önce
endOfDay First Commit 3 yıl önce
endOfDecade First Commit 3 yıl önce
endOfHour First Commit 3 yıl önce
endOfISOWeek First Commit 3 yıl önce
endOfISOWeekYear First Commit 3 yıl önce
endOfMinute First Commit 3 yıl önce
endOfMonth First Commit 3 yıl önce
endOfQuarter First Commit 3 yıl önce
endOfSecond First Commit 3 yıl önce
endOfToday First Commit 3 yıl önce
endOfTomorrow First Commit 3 yıl önce
endOfWeek First Commit 3 yıl önce
endOfYear First Commit 3 yıl önce
endOfYesterday First Commit 3 yıl önce
esm First Commit 3 yıl önce
format First Commit 3 yıl önce
formatDistance First Commit 3 yıl önce
formatDistanceStrict First Commit 3 yıl önce
formatDistanceToNow First Commit 3 yıl önce
formatDistanceToNowStrict First Commit 3 yıl önce
formatISO First Commit 3 yıl önce
formatISO9075 First Commit 3 yıl önce
formatISODuration First Commit 3 yıl önce
formatRFC3339 First Commit 3 yıl önce
formatRFC7231 First Commit 3 yıl önce
formatRelative First Commit 3 yıl önce
fp First Commit 3 yıl önce
fromUnixTime First Commit 3 yıl önce
getDate First Commit 3 yıl önce
getDay First Commit 3 yıl önce
getDayOfYear First Commit 3 yıl önce
getDaysInMonth First Commit 3 yıl önce
getDaysInYear First Commit 3 yıl önce
getDecade First Commit 3 yıl önce
getHours First Commit 3 yıl önce
getISODay First Commit 3 yıl önce
getISOWeek First Commit 3 yıl önce
getISOWeekYear First Commit 3 yıl önce
getISOWeeksInYear First Commit 3 yıl önce
getMilliseconds First Commit 3 yıl önce
getMinutes First Commit 3 yıl önce
getMonth First Commit 3 yıl önce
getOverlappingDaysInIntervals First Commit 3 yıl önce
getQuarter First Commit 3 yıl önce
getSeconds First Commit 3 yıl önce
getTime First Commit 3 yıl önce
getUnixTime First Commit 3 yıl önce
getWeek First Commit 3 yıl önce
getWeekOfMonth First Commit 3 yıl önce
getWeekYear First Commit 3 yıl önce
getWeeksInMonth First Commit 3 yıl önce
getYear First Commit 3 yıl önce
intervalToDuration First Commit 3 yıl önce
isAfter First Commit 3 yıl önce
isBefore First Commit 3 yıl önce
isDate First Commit 3 yıl önce
isEqual First Commit 3 yıl önce
isExists First Commit 3 yıl önce
isFirstDayOfMonth First Commit 3 yıl önce
isFriday First Commit 3 yıl önce
isFuture First Commit 3 yıl önce
isLastDayOfMonth First Commit 3 yıl önce
isLeapYear First Commit 3 yıl önce
isMonday First Commit 3 yıl önce
isPast First Commit 3 yıl önce
isSameDay First Commit 3 yıl önce
isSameHour First Commit 3 yıl önce
isSameISOWeek First Commit 3 yıl önce
isSameISOWeekYear First Commit 3 yıl önce
isSameMinute First Commit 3 yıl önce
isSameMonth First Commit 3 yıl önce
isSameQuarter First Commit 3 yıl önce
isSameSecond First Commit 3 yıl önce
isSameWeek First Commit 3 yıl önce
isSameYear First Commit 3 yıl önce
isSaturday First Commit 3 yıl önce
isSunday First Commit 3 yıl önce
isThisHour First Commit 3 yıl önce
isThisISOWeek First Commit 3 yıl önce
isThisMinute First Commit 3 yıl önce
isThisMonth First Commit 3 yıl önce
isThisQuarter First Commit 3 yıl önce
isThisSecond First Commit 3 yıl önce
isThisWeek First Commit 3 yıl önce
isThisYear First Commit 3 yıl önce
isThursday First Commit 3 yıl önce
isToday First Commit 3 yıl önce
isTomorrow First Commit 3 yıl önce
isTuesday First Commit 3 yıl önce
isValid First Commit 3 yıl önce
isWednesday First Commit 3 yıl önce
isWeekend First Commit 3 yıl önce
isWithinInterval First Commit 3 yıl önce
isYesterday First Commit 3 yıl önce
lastDayOfDecade First Commit 3 yıl önce
lastDayOfISOWeek First Commit 3 yıl önce
lastDayOfISOWeekYear First Commit 3 yıl önce
lastDayOfMonth First Commit 3 yıl önce
lastDayOfQuarter First Commit 3 yıl önce
lastDayOfWeek First Commit 3 yıl önce
lastDayOfYear First Commit 3 yıl önce
lightFormat First Commit 3 yıl önce
locale First Commit 3 yıl önce
max First Commit 3 yıl önce
min First Commit 3 yıl önce
parse First Commit 3 yıl önce
parseISO First Commit 3 yıl önce
parseJSON First Commit 3 yıl önce
roundToNearestMinutes First Commit 3 yıl önce
set First Commit 3 yıl önce
setDate First Commit 3 yıl önce
setDay First Commit 3 yıl önce
setDayOfYear First Commit 3 yıl önce
setHours First Commit 3 yıl önce
setISODay First Commit 3 yıl önce
setISOWeek First Commit 3 yıl önce
setISOWeekYear First Commit 3 yıl önce
setMilliseconds First Commit 3 yıl önce
setMinutes First Commit 3 yıl önce
setMonth First Commit 3 yıl önce
setQuarter First Commit 3 yıl önce
setSeconds First Commit 3 yıl önce
setWeek First Commit 3 yıl önce
setWeekYear First Commit 3 yıl önce
setYear First Commit 3 yıl önce
startOfDay First Commit 3 yıl önce
startOfDecade First Commit 3 yıl önce
startOfHour First Commit 3 yıl önce
startOfISOWeek First Commit 3 yıl önce
startOfISOWeekYear First Commit 3 yıl önce
startOfMinute First Commit 3 yıl önce
startOfMonth First Commit 3 yıl önce
startOfQuarter First Commit 3 yıl önce
startOfSecond First Commit 3 yıl önce
startOfToday First Commit 3 yıl önce
startOfTomorrow First Commit 3 yıl önce
startOfWeek First Commit 3 yıl önce
startOfWeekYear First Commit 3 yıl önce
startOfYear First Commit 3 yıl önce
startOfYesterday First Commit 3 yıl önce
sub First Commit 3 yıl önce
subBusinessDays First Commit 3 yıl önce
subDays First Commit 3 yıl önce
subHours First Commit 3 yıl önce
subISOWeekYears First Commit 3 yıl önce
subMilliseconds First Commit 3 yıl önce
subMinutes First Commit 3 yıl önce
subMonths First Commit 3 yıl önce
subQuarters First Commit 3 yıl önce
subSeconds First Commit 3 yıl önce
subWeeks First Commit 3 yıl önce
subYears First Commit 3 yıl önce
toDate First Commit 3 yıl önce
.DS_Store First Commit 3 yıl önce
CHANGELOG.md First Commit 3 yıl önce
LICENSE.md First Commit 3 yıl önce
README.md First Commit 3 yıl önce
index.js First Commit 3 yıl önce
index.js.flow First Commit 3 yıl önce
package.json First Commit 3 yıl önce
typings.d.ts First Commit 3 yıl önce

README.md

date-fns

🔥🔥🔥 date-fns v2 is out! 🔥🔥🔥

Upgrading from v1 to v2?

date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.

date-fns is like lodash for dates. It has 180+ functions for all occasions.

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

Docs

See date-fns.org for more details, API, and other docs.

JavaScript jobs by date-fns

👋 Know someone who’s looking for JavaScript devs? Recommend us a job!

✉️ Get jobs worth sharing to your email! Subscribe to the newsletter.

License

MIT © Sasha Koss