What's the best approach to get Date/Time input from the user?

后端 未结 12 1357
感情败类
感情败类 2021-02-02 15:34

This is a wheel that\'s been re-invented again and again over the years.

The Problem: The user needs to input a Date/Time

Basic considerations

12条回答
  •  执念已碎
    2021-02-02 16:36

    I'd go for three alternatives depending on the situation:

    1. 2 combo boxes. One listing year + month, another the day
    2. 3 combo boxes. One listing years, one month, one days
    3. Visible calendar/s and combos like this one from YUI

    And I believe there are more options from which I'd choose.

提交回复
热议问题