datetimepicker

What is currently the best, free time picker for WPF?

前提是你 提交于 2019-11-26 22:42:03
问题 I'm looking for a simple time picker control for WPF. I've found found this one: http://marlongrech.wordpress.com/2007/11/18/time-picker/ but it has some issues e.g. you can't type in "00" into it, the second zero won't appear. Silverlight seems to have one: http://jesseliberty.com/2009/03/28/toolkit-control-%E2%80%93-timepicker/ but it's not for WPF . The WPF Toolkit has a DatePicker but not a TimePicker by itself. Or is there a way to allow the user to enter time and date in the WPFToolkit

DateTimePicker for WPF 4.0

我与影子孤独终老i 提交于 2019-11-26 22:00:32
问题 According to this post, there's a separate DatePicker control in .net 4. I've tried it, and I don't see a good way to also let it select the time of the day. Is there an easy way to transform DatePicker into DateTimePicker by editing XAML template? If not, what is the best way to get a DateTimePicker for WPF 4.0? 回答1: Extended WPF Toolkit sports a nice DateTimePicker with time of day. There is also an article over on CP where someone created a control that works like the Winforms one... A WPF

Is there any good and free Date AND Time Picker available for Java Swing? [closed]

可紊 提交于 2019-11-26 19:59:05
Is there any good and free Date AND Time Picker available for Java Swing? There are a lot date pickers available but no date AND time picker. This is the closest I came across so far: Looking for a date AND time picker Anybody? Mark For a time picker you can use a JSpinner and set a JSpinner.DateEditor that only shows the time value. JSpinner timeSpinner = new JSpinner( new SpinnerDateModel() ); JSpinner.DateEditor timeEditor = new JSpinner.DateEditor(timeSpinner, "HH:mm:ss"); timeSpinner.setEditor(timeEditor); timeSpinner.setValue(new Date()); // will only show the current time You can extend

jQuery date/time picker [closed]

夙愿已清 提交于 2019-11-26 19:11:02
I've been looking around for a decent jQuery plugin that can handle both dates and times. The core UI DatePicker is great, but unfortunately I need to be able to take time in as well. I've found a few hacks for the DatePicker to work with times, but they all seem pretty inelegant and Google isn't turning up anything nice. Is there a good jQuery plugin for selecting dates and times in a single UI control with a usable interface? By far the nicest and simplest DateTime picker option is http://trentrichardson.com/examples/timepicker/ . It is an extension of the jQuery UI Datepicker so it will

Jquery Datepicker Chrome

偶尔善良 提交于 2019-11-26 18:46:11
When using jQuery UI Datepicker, we encouter a problem when used in Google Chrome: when we enter a date with a day higher than 12, it does not accept it as a valid date, this is because chrome thinks the dateformat is mm/dd/yyyy. We tried to solve this by adding code to try to force the date settings into dd/mm/yyyy $('.date').datepicker({ dateFormat: "dd/mm/yy" }); Is there any way to resolve this issue, so our datepicker will accept dd/mm/yyyy values? We only have this issue in google Chrome, the datefix works for firefox, ie & safari. We are using ASPX & MVC3 with this project. If someone

How can I display a DateTimePicker in a DataGridView?

旧街凉风 提交于 2019-11-26 16:52:13
问题 Is there any way to put a DateTimePicker control in the DataGridView? I checked all the possible properties but it give option of checkbox, combo box etc, but not the DateTimePicker. 回答1: You haven't missed any built-in option, but it is possible to subclass both the DataGridViewColumn and DataGridViewCell classes to host any control of your choosing. This article on MSDN explains the process in more detail, and even includes some sample code: How to: Host Controls in Windows Forms

set default time in bootstrap-datetimepicker

混江龙づ霸主 提交于 2019-11-26 16:39:57
问题 I want to set default time in this datetimepicker as 00:01 for the current date. Anyone tried that before? Having a tough time with it. It Seems simple. $('#startdatetime-from').datetimepicker({ language: 'en', format: 'yyyy-MM-dd hh:mm' }); I need to use setDate , but I'm not sure how. I checked their code, but did not find a parameter for that. 回答1: Set a default input value as per this GitHub issue. HTML <input type="text" id="datetimepicker-input"></input> jQuery var d = new Date(); var

How to alter a .NET DateTimePicker control to allow enter null values?

扶醉桌前 提交于 2019-11-26 14:27:16
问题 What's the easiest and most robust way of altering the .NET DateTimePicker control, to allow users to enter null values? 回答1: Here's an approach from this CodeProject article on creating a Nullable DateTimePicker. I have overridden the Value property to accept Null value as DateTime.MinValue , while maintaining the validation of MinValue and MaxValue of the standard control. Here's a version of the custom class component from the article public class NullableDateTimePicker : System.Windows

How to make a directive update ng-model on jquery on event?

血红的双手。 提交于 2019-11-26 13:47:48
I'm making an AngularJS directive for a jQuery date picker plugin which should update a ng-model when the datepicker date has changed. Here is the code so far: angular.module('bootstrap-timepicker', []).directive('timepicker', [ function() { var link; link = function(scope, element, attr, ngModel) { element.datetimepicker(); element.on('dp.change', function(event) { // update ngModel ? }); }; return { restrict: 'A', link: link, require: 'ngModel' }; } ]); How can I update ngModel in the 'dp.change' event considering that scope, element, attr, ngModel are not available when the event is called?

jQuery date/time picker [closed]

房东的猫 提交于 2019-11-26 12:16:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. I\'ve been looking around for a decent jQuery plugin that can handle both dates and times. The core UI DatePicker is great, but