Outlook_Addin_LLM/node_modules/@fluentui/date-time-utilities/lib/dateGrid/isAfterMaxDate.js

11 lines
402 B
JavaScript
Raw Normal View History

import { compareDatePart } from '../dateMath/dateMath';
/**
* Checks if `date` happens later than max date
* @param date - date to check
* @param options - object with max date to check against
*/
export var isAfterMaxDate = function (date, options) {
var maxDate = options.maxDate;
return maxDate ? compareDatePart(date, maxDate) >= 1 : false;
};
//# sourceMappingURL=isAfterMaxDate.js.map