UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

17 lines 492 B
"use strict"; /** * Returns month for date * @param {GxDate | GxDatetime} dateFrom * @return number */ Object.defineProperty(exports, "__esModule", { value: true }); exports.month = void 0; const luxon_1 = require("luxon"); const core_1 = require("../date/core"); const month = (dateFrom) => { return dateFrom.getTime() === core_1.EMPTY_DATE_VALUE.getTime() ? 0 : luxon_1.DateTime.fromJSDate(dateFrom).month; }; exports.month = month; //# sourceMappingURL=month.js.map