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