@fenil265/fundly-payment-sdk
Version:
Fundly Payment SDK for seamless integration with Fundly Pay systems.
33 lines • 885 B
TypeScript
/**
* Date utility functions to replace dayjs
* Provides common date operations using native JavaScript Date API
*/
/**
* Format a date to YYYY-MM-DD
*/
export declare function formatDate(date: Date | string | null): string;
/**
* Format a date to DD MMM YYYY (e.g., "17 Oct 2025")
*/
export declare function formatDateLong(date: Date | string | null): string;
/**
* Format a date to HH:mm A (e.g., "09:30 AM")
*/
export declare function formatTime(date: Date | string | null): string;
/**
* Add days to a date
*/
export declare function addDays(date: Date, days: number): Date;
/**
* Get tomorrow's date
*/
export declare function getTomorrow(): Date;
/**
* Parse a date string
*/
export declare function parseDate(dateString: string): Date;
/**
* Check if a date is valid
*/
export declare function isValidDate(date: any): boolean;
//# sourceMappingURL=date.d.ts.map