源代码
<template>
<div>
<h2>DateTime Format</h2>
<div style="margin-bottom:20px">
<Label for="t1" align="top">MM/dd/yyyy HH:mm:ss</Label>
<DateTimeSpinner inputId="t1" value="06/24/2017 18:20:30" format="MM/dd/yyyy HH:mm:ss"></DateTimeSpinner>
</div>
<div style="margin-bottom:20px">
<Label for="t2" align="top">MM/dd/yyyy</Label>
<DateTimeSpinner inputId="t2" value="06/24/2017" format="MM/dd/yyyy"></DateTimeSpinner>
</div>
<div style="margin-bottom:20px">
<Label for="t3" align="top">yyyy-MM</Label>
<DateTimeSpinner inputId="t3" value="2017-09" format="yyyy-MM"></DateTimeSpinner>
</div>
</div>
</template>
<script>
export default {};
</script>