Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/utils/dates",["module","exports","require"],(function(t,e,n){window;{function o(t){return new Date(t.year,t.month-1,t.day).toLocaleDateString()}Object.defineProperty(e,"__esModule",{value:!0}),e.formatDateObject=function(t){return"".concat(t.year,"-").concat(("0"+t.month).slice(-2),"-").concat(("0"+t.day).slice(-2))},e.getDateFromDateString=function(t){const[e,n,o]=t.split("-");return{day:Number(o),month:Number(n),year:Number(e)}},e.prettifyDateObject=o,e.formatDateRangeObject=function(t){if(t.from&&t.to)return"".concat(o(t.from)," - ").concat(o(t.to));if(t.from)return"".concat(Liferay.Language.get("from")," ").concat(o(t.from));if(t.to)return"".concat(Liferay.Language.get("to")," ").concat(o(t.to))},e.convertObjectDateToIsoString=function(t,e){const n="from"===e?[0,0,0,0]:[23,59,59,999];return new Date(t.year,t.month-1,t.day,...n).toISOString()}}}));
//# sourceMappingURL=dates.js.map