Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit il y a 3 ans
..
_lib First Commit il y a 3 ans
add First Commit il y a 3 ans
addBusinessDays First Commit il y a 3 ans
addDays First Commit il y a 3 ans
addHours First Commit il y a 3 ans
addISOWeekYears First Commit il y a 3 ans
addMilliseconds First Commit il y a 3 ans
addMinutes First Commit il y a 3 ans
addMonths First Commit il y a 3 ans
addQuarters First Commit il y a 3 ans
addSeconds First Commit il y a 3 ans
addWeeks First Commit il y a 3 ans
addYears First Commit il y a 3 ans
areIntervalsOverlapping First Commit il y a 3 ans
closestIndexTo First Commit il y a 3 ans
closestTo First Commit il y a 3 ans
compareAsc First Commit il y a 3 ans
compareDesc First Commit il y a 3 ans
constants First Commit il y a 3 ans
differenceInBusinessDays First Commit il y a 3 ans
differenceInCalendarDays First Commit il y a 3 ans
differenceInCalendarISOWeekYears First Commit il y a 3 ans
differenceInCalendarISOWeeks First Commit il y a 3 ans
differenceInCalendarMonths First Commit il y a 3 ans
differenceInCalendarQuarters First Commit il y a 3 ans
differenceInCalendarWeeks First Commit il y a 3 ans
differenceInCalendarYears First Commit il y a 3 ans
differenceInDays First Commit il y a 3 ans
differenceInHours First Commit il y a 3 ans
differenceInISOWeekYears First Commit il y a 3 ans
differenceInMilliseconds First Commit il y a 3 ans
differenceInMinutes First Commit il y a 3 ans
differenceInMonths First Commit il y a 3 ans
differenceInQuarters First Commit il y a 3 ans
differenceInSeconds First Commit il y a 3 ans
differenceInWeeks First Commit il y a 3 ans
differenceInYears First Commit il y a 3 ans
docs First Commit il y a 3 ans
eachDayOfInterval First Commit il y a 3 ans
eachMonthOfInterval First Commit il y a 3 ans
eachWeekOfInterval First Commit il y a 3 ans
eachWeekendOfInterval First Commit il y a 3 ans
eachWeekendOfMonth First Commit il y a 3 ans
eachWeekendOfYear First Commit il y a 3 ans
eachYearOfInterval First Commit il y a 3 ans
endOfDay First Commit il y a 3 ans
endOfDecade First Commit il y a 3 ans
endOfHour First Commit il y a 3 ans
endOfISOWeek First Commit il y a 3 ans
endOfISOWeekYear First Commit il y a 3 ans
endOfMinute First Commit il y a 3 ans
endOfMonth First Commit il y a 3 ans
endOfQuarter First Commit il y a 3 ans
endOfSecond First Commit il y a 3 ans
endOfToday First Commit il y a 3 ans
endOfTomorrow First Commit il y a 3 ans
endOfWeek First Commit il y a 3 ans
endOfYear First Commit il y a 3 ans
endOfYesterday First Commit il y a 3 ans
esm First Commit il y a 3 ans
format First Commit il y a 3 ans
formatDistance First Commit il y a 3 ans
formatDistanceStrict First Commit il y a 3 ans
formatDistanceToNow First Commit il y a 3 ans
formatDistanceToNowStrict First Commit il y a 3 ans
formatISO First Commit il y a 3 ans
formatISO9075 First Commit il y a 3 ans
formatISODuration First Commit il y a 3 ans
formatRFC3339 First Commit il y a 3 ans
formatRFC7231 First Commit il y a 3 ans
formatRelative First Commit il y a 3 ans
fp First Commit il y a 3 ans
fromUnixTime First Commit il y a 3 ans
getDate First Commit il y a 3 ans
getDay First Commit il y a 3 ans
getDayOfYear First Commit il y a 3 ans
getDaysInMonth First Commit il y a 3 ans
getDaysInYear First Commit il y a 3 ans
getDecade First Commit il y a 3 ans
getHours First Commit il y a 3 ans
getISODay First Commit il y a 3 ans
getISOWeek First Commit il y a 3 ans
getISOWeekYear First Commit il y a 3 ans
getISOWeeksInYear First Commit il y a 3 ans
getMilliseconds First Commit il y a 3 ans
getMinutes First Commit il y a 3 ans
getMonth First Commit il y a 3 ans
getOverlappingDaysInIntervals First Commit il y a 3 ans
getQuarter First Commit il y a 3 ans
getSeconds First Commit il y a 3 ans
getTime First Commit il y a 3 ans
getUnixTime First Commit il y a 3 ans
getWeek First Commit il y a 3 ans
getWeekOfMonth First Commit il y a 3 ans
getWeekYear First Commit il y a 3 ans
getWeeksInMonth First Commit il y a 3 ans
getYear First Commit il y a 3 ans
intervalToDuration First Commit il y a 3 ans
isAfter First Commit il y a 3 ans
isBefore First Commit il y a 3 ans
isDate First Commit il y a 3 ans
isEqual First Commit il y a 3 ans
isExists First Commit il y a 3 ans
isFirstDayOfMonth First Commit il y a 3 ans
isFriday First Commit il y a 3 ans
isFuture First Commit il y a 3 ans
isLastDayOfMonth First Commit il y a 3 ans
isLeapYear First Commit il y a 3 ans
isMonday First Commit il y a 3 ans
isPast First Commit il y a 3 ans
isSameDay First Commit il y a 3 ans
isSameHour First Commit il y a 3 ans
isSameISOWeek First Commit il y a 3 ans
isSameISOWeekYear First Commit il y a 3 ans
isSameMinute First Commit il y a 3 ans
isSameMonth First Commit il y a 3 ans
isSameQuarter First Commit il y a 3 ans
isSameSecond First Commit il y a 3 ans
isSameWeek First Commit il y a 3 ans
isSameYear First Commit il y a 3 ans
isSaturday First Commit il y a 3 ans
isSunday First Commit il y a 3 ans
isThisHour First Commit il y a 3 ans
isThisISOWeek First Commit il y a 3 ans
isThisMinute First Commit il y a 3 ans
isThisMonth First Commit il y a 3 ans
isThisQuarter First Commit il y a 3 ans
isThisSecond First Commit il y a 3 ans
isThisWeek First Commit il y a 3 ans
isThisYear First Commit il y a 3 ans
isThursday First Commit il y a 3 ans
isToday First Commit il y a 3 ans
isTomorrow First Commit il y a 3 ans
isTuesday First Commit il y a 3 ans
isValid First Commit il y a 3 ans
isWednesday First Commit il y a 3 ans
isWeekend First Commit il y a 3 ans
isWithinInterval First Commit il y a 3 ans
isYesterday First Commit il y a 3 ans
lastDayOfDecade First Commit il y a 3 ans
lastDayOfISOWeek First Commit il y a 3 ans
lastDayOfISOWeekYear First Commit il y a 3 ans
lastDayOfMonth First Commit il y a 3 ans
lastDayOfQuarter First Commit il y a 3 ans
lastDayOfWeek First Commit il y a 3 ans
lastDayOfYear First Commit il y a 3 ans
lightFormat First Commit il y a 3 ans
locale First Commit il y a 3 ans
max First Commit il y a 3 ans
min First Commit il y a 3 ans
parse First Commit il y a 3 ans
parseISO First Commit il y a 3 ans
parseJSON First Commit il y a 3 ans
roundToNearestMinutes First Commit il y a 3 ans
set First Commit il y a 3 ans
setDate First Commit il y a 3 ans
setDay First Commit il y a 3 ans
setDayOfYear First Commit il y a 3 ans
setHours First Commit il y a 3 ans
setISODay First Commit il y a 3 ans
setISOWeek First Commit il y a 3 ans
setISOWeekYear First Commit il y a 3 ans
setMilliseconds First Commit il y a 3 ans
setMinutes First Commit il y a 3 ans
setMonth First Commit il y a 3 ans
setQuarter First Commit il y a 3 ans
setSeconds First Commit il y a 3 ans
setWeek First Commit il y a 3 ans
setWeekYear First Commit il y a 3 ans
setYear First Commit il y a 3 ans
startOfDay First Commit il y a 3 ans
startOfDecade First Commit il y a 3 ans
startOfHour First Commit il y a 3 ans
startOfISOWeek First Commit il y a 3 ans
startOfISOWeekYear First Commit il y a 3 ans
startOfMinute First Commit il y a 3 ans
startOfMonth First Commit il y a 3 ans
startOfQuarter First Commit il y a 3 ans
startOfSecond First Commit il y a 3 ans
startOfToday First Commit il y a 3 ans
startOfTomorrow First Commit il y a 3 ans
startOfWeek First Commit il y a 3 ans
startOfWeekYear First Commit il y a 3 ans
startOfYear First Commit il y a 3 ans
startOfYesterday First Commit il y a 3 ans
sub First Commit il y a 3 ans
subBusinessDays First Commit il y a 3 ans
subDays First Commit il y a 3 ans
subHours First Commit il y a 3 ans
subISOWeekYears First Commit il y a 3 ans
subMilliseconds First Commit il y a 3 ans
subMinutes First Commit il y a 3 ans
subMonths First Commit il y a 3 ans
subQuarters First Commit il y a 3 ans
subSeconds First Commit il y a 3 ans
subWeeks First Commit il y a 3 ans
subYears First Commit il y a 3 ans
toDate First Commit il y a 3 ans
.DS_Store First Commit il y a 3 ans
CHANGELOG.md First Commit il y a 3 ans
LICENSE.md First Commit il y a 3 ans
README.md First Commit il y a 3 ans
index.js First Commit il y a 3 ans
index.js.flow First Commit il y a 3 ans
package.json First Commit il y a 3 ans
typings.d.ts First Commit il y a 3 ans

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