sdk-date-formatting-2026
v1.0.4
Published
npm install sdk-date-formatting-2026
Readme
Installation
npm install sdk-date-formatting-2026
Usage
import { FormatDate } from 'sdk-date-formatting-alaa';
const sdk = new FormatDate('https://api.example.com');
const formatted = sdk.formatDate('2026-03-31'); console.log(formatted); // Output: 31/03/2026
Constructor
constructor(baseURL: string)
Methods
formatDate(date: string | number | Date): string
Formats a date into DD/MM/YYYY.
- Parameters:
date- string, number, or Date - Returns: Formatted date string
- Throws: Error if date is invalid
License
MIT © Alaa
