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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core-mp",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -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
  }