Skip to content
@datetime

datetime

Collection of javascript date and time utils.

JavaScript 1 0

days

Days of the week (tired of retyping these for helper functions!)

Updated Jun 9, 2016

JavaScript 2 0

months

Months of the year.

Updated Jan 17, 2016

JavaScript 1 0

month-day

Get the current day of the month, according to local time or UTC.

Updated May 26, 2015

JavaScript 3 0

month

Get the name and number of the current month. Or get the name of the month for a given number.

Updated May 26, 2015

JavaScript 2 0

iso-week

Get the ISO week of the year.

Updated May 1, 2015

JavaScript 4 1

current-week-number

Get current week number of the current year or given date string format.

Updated Mar 2, 2015

JavaScript 1 0

year-seconds

Get the number of seconds/milliseconds in leap/noleap year.

Updated Mar 2, 2015

JavaScript 1 0

week-seconds

Get the number of seconds/milliseconds in a week.

Updated Mar 2, 2015

JavaScript 1 0

current-day-number

Get day number of the current year or given date format.

Updated Mar 2, 2015

JavaScript 1 0

week-hours

Get the number of hours in a week.

Updated Mar 2, 2015

JavaScript 3 0

day-seconds

Get the number of seconds/milliseconds in a day.

Updated Mar 2, 2015

JavaScript 1 0

year-weeks

Get the number of weeks in year - leap or not.

Updated Mar 2, 2015

JavaScript 2 1

leap-year

Check if a year is a leap year

Updated Feb 8, 2015

JavaScript 4 0

year-days

Get the number of days in a year

Updated Feb 8, 2015

JavaScript 3 0

month-days

Get the number of days in a month

Updated Feb 8, 2015

meta

Logo license and `datetime` organization discussion.

Updated Dec 12, 2014

JavaScript 3 0

seconds

Get the number of seconds for a minute, hour, day and week.

Updated Dec 8, 2014

JavaScript 2 0

week

Get the current week number.

Updated Dec 7, 2014

JavaScript 2 0

weekday

Get the name and number of the current weekday. Or get the name of the weekday for a given number

Updated Dec 7, 2014

JavaScript 2 0

year

Simple utility to get the current year with 2 or 4 digits.

Updated Dec 1, 2014

Something went wrong with that request. Please try again.