Skip to content

Niklus/lodate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lodate

Date utility functions for common date operations.

Lodate is a pure ESM package.

Install

npm install lodate

Usage Example

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);

About

Date utility functions for common date operations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published