[英]JS datepicker capable of: time, date, datetime, day of week, week of year, month of year etc
I am after a JavaScript lib that either natively supports or may be easily extended to work in a variety of 'date picking' modes, where only the relevant time data is selected: 我正在使用一个JavaScript库,它本身支持或可以很容易地扩展到各种“日期选择”模式,只选择相关的时间数据:
Mind you, what is more important to me is that the UI intuitively conveys the fact that you are selecting a week and not a day, a month and not a datetime etc. Parsing the relevant data out is trivial. 请注意,对我来说更重要的是UI直观地表达了您选择一周而不是一天,一个月而不是日期时间等事实。解析相关数据是微不足道的。
Is anybody aware of any library remotely capable of achieving what I am looking for? 是否有人知道任何远程库能够实现我想要的东西?
You should check out DateTimePicker . 你应该看看DateTimePicker 。 It's mostly just an extension of DatePicker which adds various additional options for picking time.
它主要只是DatePicker的扩展,它为选择时间添加了各种附加选项。
Here's a link to question from a while ago showing a DatePicker modification that will allow you to select only the month and year. 这是前一段时间的问题链接,显示了一个DatePicker修改 ,允许您只选择月份和年份。
I think a lot of what you want can actually be achieved by just modifying the options for DatePicker. 我认为通过修改DatePicker的选项实际上可以实现很多你想要的东西。 Hopefully this will at least give you a better idea of how you can modify the original widget options to fit your requirements.
希望这至少可以让您更好地了解如何修改原始窗口小部件选项以满足您的要求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.