Date utility functions for common date operations.
Lodate is a pure ESM package.
npm install lodate
Using the default object
import date from "lodate"
const monthName = date.getMonthName(new Date())
console.log(monthName)
const dayOfYear = date.dayOfYear(new Date())
console.log(dayOfYear)
You can select a specific function
import { getWeekday, getTimezone } from "lodate";
const weekday = getWeekday(new Date());
console.log(weekday);
const timezone = getTimezone();
console.log(timezone);