quasar-ui-danx 0.4.78 → 0.4.79
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.
- package/dist/danx.es.js +161 -156
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +22 -22
- package/dist/danx.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/formats.ts +8 -0
package/package.json
CHANGED
package/src/helpers/formats.ts
CHANGED
@@ -64,6 +64,14 @@ export function fDateTime(
|
|
64
64
|
return formatted || empty;
|
65
65
|
}
|
66
66
|
|
67
|
+
export function fDateTimeMs(
|
68
|
+
dateTime: string | DateTime | null = null,
|
69
|
+
{ empty = "- -" }: fDateOptions = {}
|
70
|
+
) {
|
71
|
+
const formatted = parseDateTime(dateTime)?.toFormat("M/d/yy H:mm:ss.SSS").toLowerCase();
|
72
|
+
return formatted || empty;
|
73
|
+
}
|
74
|
+
|
67
75
|
/**
|
68
76
|
* Formats a date/time object or string into the best format for DB input
|
69
77
|
* @param dateTime
|