0.0.2 • Published 4 months ago
khmer-date-utils v0.0.2
Date Range Utils
A lightweight and versatile npm package designed to simplify working with date ranges in JavaScript and TypeScript applications.
Installation
Install the package using npm:
khmer-date-utils
library by running the following command:npm install khmer-date-utils
Import the
khmer-date-utils
in your project Angular CLI:import { GetDateRange } from 'khmer-date-utils';
Usage
```typescript
import { GetDateRange } from 'khmer-date-utils';
console.log(GetDateRange(ETypeDate.LastMonth));
/*
{
dateType: 'lastMonth',
startDate: 2025-02-01T08:47:18.054Z,
endDate: 2025-02-28T08:47:18.054Z
}
*/
```