jmash-core-mp 0.1.81 → 0.1.82
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/lib/utils/common.js +3 -0
- package/package.json +1 -1
- package/src/utils/common.ts +3 -0
package/lib/utils/common.js
CHANGED
|
@@ -119,6 +119,9 @@ export const formatDateTime = (dateTimeString, format) => {
|
|
|
119
119
|
if (format === "YYYY-MM-DD") {
|
|
120
120
|
return year + "-" + month + "-" + day;
|
|
121
121
|
}
|
|
122
|
+
if (format === "YYYY.MM.DD") {
|
|
123
|
+
return year + "." + month + "." + day;
|
|
124
|
+
}
|
|
122
125
|
if (format === "HH:mm:ss") {
|
|
123
126
|
return hours + ":" + minutes + ":" + seconds;
|
|
124
127
|
}
|
package/package.json
CHANGED
package/src/utils/common.ts
CHANGED
|
@@ -123,6 +123,9 @@ export const formatDateTime = (dateTimeString: string, format?: any) => {
|
|
|
123
123
|
if (format === "YYYY-MM-DD") {
|
|
124
124
|
return year + "-" + month + "-" + day;
|
|
125
125
|
}
|
|
126
|
+
if (format === "YYYY.MM.DD") {
|
|
127
|
+
return year + "." + month + "." + day;
|
|
128
|
+
}
|
|
126
129
|
if (format === "HH:mm:ss") {
|
|
127
130
|
return hours + ":" + minutes + ":" + seconds;
|
|
128
131
|
}
|