turf-common 1.2.1-beta.71 → 1.2.1-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,5 +44,6 @@ export declare class DateUtilService {
|
|
|
44
44
|
* @returns An array of booking date codes based on the provided date range and weekdays.
|
|
45
45
|
*/
|
|
46
46
|
getBookingCodeByWeekDaysAndDateRange(startDateCode: string, endDateCode: string, weekdays: number[]): string[];
|
|
47
|
+
formatDate(date: Date, formatString: string): string;
|
|
47
48
|
}
|
|
48
49
|
export declare const dateUtilService: DateUtilService;
|
package/build/utils/date-util.js
CHANGED
|
@@ -138,6 +138,9 @@ var DateUtilService = /** @class */ (function () {
|
|
|
138
138
|
});
|
|
139
139
|
return bookingDateCodes.map(Number).sort().map(String);
|
|
140
140
|
};
|
|
141
|
+
DateUtilService.prototype.formatDate = function (date, formatString) {
|
|
142
|
+
return (0, date_fns_1.format)(date, formatString);
|
|
143
|
+
};
|
|
141
144
|
return DateUtilService;
|
|
142
145
|
}());
|
|
143
146
|
exports.DateUtilService = DateUtilService;
|