LouisMazel / maz-ui

Vue & Nuxt library of standalone components & tools to build interfaces

Home Page:https://maz-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] MazPicker Format 24h

neopheus opened this issue · comments

Hi,

currently only the 12h (am/pm) format is available

chrome_HtOZlFf5SS

it would be interesting to have the possibility to choose the 24h format

Thx

commented

Hello @neopheus,

You can do it by change the input format :

<template>
  <MazPicker v-model="date" format="DD-MM-YYYY HH:mm" />
</template>

<script>
  import MazPicker from 'maz-ui/lib/maz-picker'
  export default {
    components: { MazPicker },
    data() {
      return {
        date: undefined
      }
    }
  }
</script>

According with MomentJS

hh or h is 12h format
HH or H is 24h format