vue-time-date-range-picker-vue3
Advanced tools
Comparing version 1.4.13 to 1.4.14
{ | ||
"name": "vue-time-date-range-picker-vue3", | ||
"version": "1.4.13", | ||
"version": "1.4.14", | ||
"description": "a vue time date range picker", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -15,12 +15,2 @@ // eslint-disable-next-line import/no-unresolved | ||
/** | ||
* Create Date | ||
* @returns {Date} | ||
*/ | ||
createDate(...param) { | ||
return moment(...param) | ||
.locale(this.lang) | ||
.toDate(); | ||
} | ||
/** | ||
* Get Day Names | ||
@@ -68,2 +58,9 @@ * | ||
// eslint-disable-next-line class-methods-use-this | ||
formatUTCDate(date, format) { | ||
return moment(date) | ||
.locale(this.lang) | ||
.utc() | ||
.format(format); | ||
} | ||
formatDate(date, format) { | ||
@@ -75,2 +72,6 @@ return moment(date) | ||
toUTC(date, format) { | ||
return new Date(moment(date).format(`${format} UTC`)) | ||
} | ||
/** | ||
@@ -77,0 +78,0 @@ * check for same date only |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61191