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

后端 未结 12 1363
感情败类
感情败类 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:34

    A text box with an image-link to a pop-out calendar on the side is my choice. Best of both worlds.

    If you want something extra you could let a natural language date/time parser like Chronic http://chronic.rubyforge.org/ spice it up.

    Also don't forget the international users.

提交回复
热议问题