Date/Time pickers日期/时间选择器
日期选择器和时间选择器提供了一个从事先设定好的日期集合中选择单个值的简单方法。
- 在移动端,选择器最适合在确认对话框中展示。
- 若是内联显示,如在一个表单内展示,请考虑使用分段下拉按钮这样的紧凑型控件。
mm/dd/yyyy
<form noValidate>
  <TextField
    id="date"
    label="Birthday"
    type="date"
    defaultValue="2017-05-24"
    sx={{ width: 220 }}
    InputLabelProps={{
      shrink: true,
    }}
  />
</form><form noValidate>
  <TextField
    id="datetime-local"
    label="Next appointment"
    type="datetime-local"
    defaultValue="2017-05-24T10:30"
    sx={{ width: 250 }}
    InputLabelProps={{
      shrink: true,
    }}
  />
</form><form noValidate>
  <TextField
    id="time"
    label="Alarm clock"
    type="time"
    defaultValue="07:30"
    InputLabelProps={{
      shrink: true,
    }}
    inputProps={{
      step: 300, // 5 min
    }}
    sx={{ width: 150 }}
  />
</form>