@stemy/ngx-utils 19.9.44 → 19.9.46

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.
@@ -26,6 +26,12 @@ export declare function getISOWeekNumber(date: Date): number;
26
26
  * @param format Expected date format (date, date-time)
27
27
  */
28
28
  export declare function convertToDateFormat(value: any, format?: string): any;
29
+ /**
30
+ * Convert value to date object with format (date, date-time)
31
+ * @param value Value to convert to date
32
+ * @param format Expected date format (date, date-time)
33
+ */
34
+ export declare function convertToDate(value: any, format?: string): any;
29
35
  /**
30
36
  * Returns if the day of the week is in the provided date is disabled
31
37
  * @param date Checked date
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.9.44",
3
+ "version": "19.9.46",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
package/public_api.d.ts CHANGED
@@ -8,7 +8,7 @@ export { AuthGuard } from "./ngx-utils/utils/auth.guard";
8
8
  export { createTypedProvider, cachedFactory } from "./ngx-utils/utils/cached-factory";
9
9
  export { CanvasUtils } from "./ngx-utils/utils/canvas";
10
10
  export { md5 } from "./ngx-utils/utils/crypto.utils";
11
- export { parseValidDate, toMidnight, isSameDay, getISOWeekNumber, convertToDateFormat, isDayOfWeekDisabled, findClosestValidDate, addDate, DateUtils } from "./ngx-utils/utils/date.utils";
11
+ export { parseValidDate, toMidnight, isSameDay, getISOWeekNumber, convertToDateFormat, convertToDate, isDayOfWeekDisabled, findClosestValidDate, addDate, DateUtils } from "./ngx-utils/utils/date.utils";
12
12
  export { FileUtils } from "./ngx-utils/utils/file.utils";
13
13
  export { ForbiddenZone } from "./ngx-utils/utils/forbidden-zone";
14
14
  export { GenericValue } from "./ngx-utils/utils/generic-value";