dateDaysInMonth
Get days in month.
import { dateDaysInMonth } from "@corefunc/corefunc/date/days-in-month";
0.3.27
dateDaysInMonth(2, 1996); ➜ 29
Month.
Year.
Days in month.
dateFormat
Format date with simple template string.
import { dateFormat } from "@corefunc/corefunc/date/format";
0.3.23
dateFormat("{YYYY}-{MM}-{DD}T{HH}:{mm}:{ss}", new Date(), true) ➜ "2020-06-15T12:30:30"
Formatted date.
dateInMilliseconds
Gets the time value in milliseconds.
0.3.19
If passed value is a positive integer, it returns the same value.
Number of milliseconds since the Unix Epoch or NaN if fails.
dateIsLeapYear
Find whether a year is a leap year
0.1.37
dateIsLeapYear(2000); // ➜ true
dateIsLeapYear(2001); // ➜ false
Year to check
Is leap year
Generated using TypeDoc
dateDaysInMonth
Get days in month.
import { dateDaysInMonth } from "@corefunc/corefunc/date/days-in-month";
0.3.27
dateDaysInMonth(2, 1996); ➜ 29