- Import Modules
import dayjs from 'dayjs'
var utc = require('dayjs/plugin/utc')
dayjs.extend(utc)
- Date and input User
<input type="time" v-model="inputDate" />
<input type="time" v-model="inputTime" />
- Convert to ISO and set the UTC to 0
let dateISO = dayjs(this.inputDate)
.set('hours', this.inputTime.substring(0, 2))
.set('minute', this.inputTime.substring(3, 5))
.utc()
.format()
Source : https://day.js.org/docs/en/parse/utc