datetimepicker

Locale DateTime in ABP

淺唱寂寞╮ 提交于 2019-12-02 09:01:35
I have a DateTime field in popup modal as below that is supposed to only show the time part: HTML: <div class='input-group date'> <input class="form-control" type="datetime" #RequiredByDate name="RequiredByDate" [value]="formatDate(hitchRequest.requiredByDate, 'LT')" required> <span class="input-group-addon"> <span class="fa fa-clock-o"></span> </span> </div> TS: formatDate(date: any, format: string): string { if (!date) { return ''; } return moment(date).format(format); } onShown(): void { $(this.requiredByDate.nativeElement).datetimepicker({ locale: abp.localization.currentLanguage.name,

bug in primefaces calendar timepicker?

旧城冷巷雨未停 提交于 2019-12-02 08:53:55
I have this calendar with time picker on my page: <p:calendar value="#{addTaskBacking.currentTask.deadline}" mode="inline" pattern="dd-MM-yyyy HH:mm" mindate="01-09-2013 00:00"/> When I set the pattern: dd-MM-yyyy without the time everything is added correctly, but when I change to: dd-MM-yyyy HH:mm I get this error: j_idt10:j_idt12: '9-04-2014' could not be understood as a date and time. This is when I set the inline mode, when I set the popup is all ok. I have primefaces_v4.jar. I check this side http://forum.primefaces.org/viewtopic.php?f=3&t=22982 but i can't find any solution Edit: It

Bootstrap datetimepicker startDate does not disable past dates

泪湿孤枕 提交于 2019-12-02 07:32:27
问题 I use bootstrap datetimepicker and I want to disable the past days but startDate option did not work: var now = new Date(); var tomorrow = now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + (now.getDate() + 1) + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds(); $('#end_at').datetimepicker({ format: 'YYYY-MM-DD hh:mm:ss', startDate: tomorrow }); 回答1: You probably need to use the minDate option of the date time picker: var tomorrow = new Date(); tomorrow.setDate

Bootstrap datetimepicker startDate does not disable past dates

烂漫一生 提交于 2019-12-02 07:17:12
I use bootstrap datetimepicker and I want to disable the past days but startDate option did not work: var now = new Date(); var tomorrow = now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + (now.getDate() + 1) + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds(); $('#end_at').datetimepicker({ format: 'YYYY-MM-DD hh:mm:ss', startDate: tomorrow }); You probably need to use the minDate option of the date time picker: var tomorrow = new Date(); tomorrow.setDate(tomorrow.getDate() + 1); $("#end_at").datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss', minDate: tomorrow });

how to implement [owlDateTime] in angular4/angular2+

假如想象 提交于 2019-12-02 06:43:26
I am trying to implement owlDateTime in my angular2+ (or rather angular4) code. I have taken its reference from - https://danielykpan.github.io/date-time-picker/ [And i even tried --> https://github.com/DanielYKPan/date-time-picker ..but got version mismatch error] I want to use -->Picker with rangeFrom and rangeTo selection Please help me resolve the error and implement it in my code. Error ERROR in multi ./src/scss/style.scss ./src/~ng-pick- datetime/assets/style/picker.min.css Module not found: Error: Can't resolve '/home/dell/Downloads/Datshare/Adaani5.0 (another copy).0/src/~ng- pick

datetimepicker sets date to todays date on when clicking outside

谁说我不能喝 提交于 2019-12-02 04:01:46
问题 I have searched high and low for the answer to this issue, but no luck so now I have to ask... I have the datetimepicker from Trent Richardson, and for some reason with very minimal options set, it automatically sets the date field to todays date when i click outside without selecting a date. Anyone have an idea whats going on? This is my code: $('input.datetime').datetimepicker({ ampm: true, timeFormat: 'hh:mm tt', addSliderAccess: true, sliderAccessArgs: { touchonly: false }, }); Appreciate

Is there a datetimepicker class in Xamarin?

本小妞迷上赌 提交于 2019-12-02 03:46:27
问题 I am currently using the Xamarin Forms DatePicker and the TimePicker in the portable project of a portable app. But is there a combined control that lets you choose date and time at once (like DateTimePicker in Windows forms)? Please have a look at the iOS Settings > General > Date & Time (http://www.iphonefaq.org/images/archives/pangu-date.jpg). Or is there anything I am missing on how to create such a control? 回答1: There is not a "stock" DateTimePicker within the controls for Xamarin.Forms

MVC4 Eonasdan Bootstrap 3 Date Time picker doesn´t open the picker screen

坚强是说给别人听的谎言 提交于 2019-12-02 03:22:43
I´m using a Bootstrap 3 date AND time picker linked here: DateTime Picker for Bootstrap 3 I can´t make the picking window open. When you click on the textbox, nothing happens and no messages are shown on browser Console (Chrome). So, in truth, the control is working as a simple textbox, not as a DateTime picker. Here is my code: _Layout file included in all views: <!DOCTYPE html> <html lang="pt"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta charset="utf-8" /> <title>TestApp</title> <link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" /> <link

Is there a datetimepicker class in Xamarin?

微笑、不失礼 提交于 2019-12-02 02:39:50
I am currently using the Xamarin Forms DatePicker and the TimePicker in the portable project of a portable app. But is there a combined control that lets you choose date and time at once (like DateTimePicker in Windows forms)? Please have a look at the iOS Settings > General > Date & Time ( http://www.iphonefaq.org/images/archives/pangu-date.jpg ). Or is there anything I am missing on how to create such a control? There is not a "stock" DateTimePicker within the controls for Xamarin.Forms . You could create your composite control using DatePicker and TimePicker within modal popups and display