@maykonpaulo/date-provider
Version:
A simple date provider for javascript based projects.
15 lines • 885 B
TypeScript
import "dayjs/locale/pt-br";
export declare function toDate(date: string): Date;
export declare function formatToDate(date: string, format?: string): Date;
export declare function timestamp(date?: Date): string;
export declare function convertTimestamp(value: string): Date;
export declare function compareInHours(start_date: Date, end_date: Date): number;
export declare function convertToUTC(date?: Date): string;
export declare function dateNowToString(): string;
export declare function dateNow(): Date;
export declare function toString(date: Date): string;
export declare function toShortDateString(date: Date): string;
export declare function toShortTimeString(date: Date): string;
export declare function toFormatDateString(date: Date, format?: string): string;
export declare function compareInDays(start_date: Date, end_date: Date): number;
//# sourceMappingURL=index.d.ts.map