aq-fe-framework 0.1.57 → 0.1.59

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.
@@ -35,6 +35,16 @@ function utils_date_dateToDDMMYYYString(date) {
35
35
  const year = date.getFullYear();
36
36
  return `${day}/${month}/${year}`;
37
37
  }
38
+ function utils_date_formatToDateTimeStartEnd(startDate, endDate) {
39
+ const startday = String(startDate.getDate()).padStart(2, "0");
40
+ const startmonth = String(startDate.getMonth() + 1).padStart(2, "0");
41
+ const startyear = startDate.getFullYear();
42
+ const starthour = String(startDate.getHours()).padStart(2, "0");
43
+ const startminute = String(startDate.getMinutes()).padStart(2, "0");
44
+ const endhour = String(endDate.getHours()).padStart(2, "0");
45
+ const endminuate = String(endDate.getMinutes()).padStart(2, "0");
46
+ return `${startday}/${startmonth}/${startyear} [${starthour}:${startminute} - ${endhour}:${endminuate}]`;
47
+ }
38
48
 
39
49
  // src/utils/excel.ts
40
50
  import saveAs from "file-saver";
@@ -252,6 +262,7 @@ export {
252
262
  utils_pdf_download,
253
263
  U0DateToDDMMYYYString,
254
264
  utils_date_dateToDDMMYYYString,
265
+ utils_date_formatToDateTimeStartEnd,
255
266
  utils_file_fileToAQDocumentType,
256
267
  utils_file_docxtemplaterDownload,
257
268
  utils_converter_getLabelByValue,