jQuery Bootstrap 日期和时间选择器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12985495/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 12:12:00  来源:igfitidea点击:

Bootstrap date and time picker

jquerytwitter-bootstrapdatepickerdatetimepicker

提问by Aravindhan

Suggest me any JavaScript to pick the date and time .

建议我使用任何 JavaScript 来选择日期和时间。

NOTE: I want to use only one file for date and time picking.

注意:我只想使用一个文件进行日期和时间选择。

I already see this:

我已经看到这个:

http://www.eyecon.ro/bootstrap-datepicker/

http://www.eyecon.ro/bootstrap-datepicker/

and

http://jdewit.github.com/bootstrap-timepicker/index.html

http://jdewit.github.com/bootstrap-timepicker/index.html

回答by Ashwin Preetham Lobo

If you are still interested in a javascript api to select both date and time data, have a look at these projects which are forks of bootstrap datepicker:

如果您仍然对用于选择日期和时间数据的 javascript api 感兴趣,请查看这些项目,它们是 bootstrap datepicker 的分支:

The first fork is a big refactor on the parsing/formatting codebase and besides providing all views to select date/time using mouse/touch, it also has a mask option (by default) which lets the user to quickly type the date/time based on a pre-specified format.

第一个 fork 是对解析/格式化代码库的重大重构,除了提供使用鼠标/触摸选择日期/时间的所有视图外,它还具有一个掩码选项(默认情况下),允许用户快速键入基于日期/时间的以预先指定的格式。