| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/smartsync-180820261/node_modules/date-fns/ |
Upload File : |
/** * @name previousSunday * @category Weekday Helpers * @summary When is the previous Sunday? * * @description * When is the previous Sunday? * * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc). * * @param date - The date to start counting from * * @returns The previous Sunday * * @example * // When is the previous Sunday before Jun, 21, 2021? * const result = previousSunday(new Date(2021, 5, 21)) * //=> Sun June 20 2021 00:00:00 */ export declare function previousSunday<DateType extends Date>( date: DateType | number | string, ): DateType;