Questions tagged [datetimepicker]

1

votes
1

answer
284

Views

How to get time from time picker using jQuery and convert into ms-sql time(7) format?

I want to get time from time picker using java-script and convert into ms-sql time(7) format. This Is my time picker code : In Time
t_rex
1

votes
1

answer
63

Views

Xpages - Script stopping a document from saving/updating

I have a strange issue, that only affects some users. I have a custom control on an xpage, which contains a modal, within which is a date time picker based on this: https://xpagesandmore.blogspot.co.uk/2014/09/using-bootstrap-datetimepicker-in-xpages.html When some users click the following save but...
Chris Richards
1

votes
0

answer
331

Views

Error parsing the date/time string: Wrong time format jquery timepicker

I'm working with the datetimeRange from jquery timepicker but it keeps indicating that I have the wrong time format, even though it looks like everything is exactly the same. Does anyone see where the problem is? I'm not sure if it's because of the UTC at the end. Error: Error parsing the date/time...
Stella Han
1

votes
0

answer
56

Views

requirejs - Getting an error loading last module in define array([])

I have been experiencing an error to load the last module in define array. Ex: define(['jquery', 'js/custom','moment','bootstrap','datetimepicker'], function ($, custom) { $('#input_start_date').datetimepicker({}); )); Getting an error: Uncaught TypeError: $(...).datetimepicker is not a function def...
Bijal
1

votes
1

answer
73

Views

Cannot open bootstrap datetimepicker in iphone meteor app

we have used bootstrap datetimepicker in our meteor app. Bootstrap datetimepicker works perfectly fine in android app and all desktop browser but in IOS app, it doesnt open, we have to touch the div/txbox for like 5 second or more in order to open it. Tried with click event and it opens on click eve...
Bugs
0

votes
0

answer
3

Views

DateTImePickerFormField Does not dismiss keyboard after date selected

I am trying to create an age field validator using the DateTimePickerFormField package in flutter. I can make the calendar appear but, I cannot dismiss it after selecting the date. I have checked on youtube and flutter package site and I'm not sure where I went wrong here Widget _buildDateField(Bui...
A True Novice
1

votes
1

answer
1.9k

Views

Bootstrap 4 (v4.1.1) date time picker drop down issue

Can somebody fix this issue for bootstrap latest version (v4.1.1). Dropdown is not showing correctly. or suggest me a good date time picker for bootstrap latest version. Please check Codepen Link Bootstrap 4 (v4.1.1 ) Date Time Picker
Sinju Angajan
1

votes
1

answer
511

Views

How to have datepicker set default year?

I am using bootstrap datepicker and I only show the years. When I load the page, I would like to set a default year, tried the following but the current year (2018) is hightlited instead. $('#sandbox-container div').datepicker({ format: 'yyyy', viewMode: 'years', minViewMode: 'years', updateViewDat...
rob.m
1

votes
1

answer
147

Views

How to restrict date and time in django bootstrap datetimepicker plus?

i am newbie using jquery stuff and date time picker. i am using https://github.com/monim67/django-bootstrap-datepicker-plus in my django forms . User cannot pick date more then next two days and cannot select time from 18:00 to 8:00 . how to manage all this . i had used jquery in it but didn't accom...
1

votes
0

answer
25

Views

datetimepicker - Set defaultTime always return 01 hours

as the title says, I use the datetimepicker plugin of boostrap, and I only show the time, I want to set a default time such as 09:20 but the result is 01:20, any time I put the time always comes in 01 , my code is as follows: **$('#dtpHour').datetimepicker({ locale:locale, format:'HH:mm', allowInput...
1

votes
0

answer
21

Views

How to set the min date to the datetimepicker

I am currently having a start and end datetimepicker. The condition is the start time value cannot be greater than the end value or the start value cannot be less than the end value. If any of the events happen, I need to default the date value to min value. Here is my code $('#endTime').on('dp.chan...
jatsen
1

votes
1

answer
41

Views

ToolStripControlHost defaults to (0,0) location when adding to a ContextMenuStrip

This question builds off of this question. What I am doing is attempting to add a DateTimePicker control to a contextmenustrip using ToolStripControlHost. What is odd is the first time I select it in the contextmenu it shows at the location (0,0) When I hover back to the option again, it displays at...
Matthew M
1

votes
1

answer
50

Views

Issue Comparing Moments in JavaScript

I've got the following code that checks to see whether the start date is >= to the end date. Almost every time I compare the two dates when they are identical, the difference between the dates is something less than 0. Here is my code: var end = $('#job_end').datetimepicker('date'); var start = $('#...
Cannon Moyer
1

votes
0

answer
16

Views

Bootstrap datetime picker time is not showing on the edit page, why?

From the Mysql database I am getting this value: Variable $pickup value is: Array ( [0] => 01:00 PM [1] => 01:00 AM [2] => 01:00 PM [3] => 01:00 PM ) now I am showing it this way: Start Time
creativeartbd
1

votes
0

answer
75

Views

Show hour and after minutes, without showing the window with icons in Tempus Dominus Js

I am using Rails and bootstrap4-datetime-picker-rails , and it use Tempus Dominus JS . I want on hours select, show only hour and after show minutes, without showing the hour and minutes together. I read the documentation but don't understand if it is possible. I am using this code: CoffeScript $('#...
Carlos Fagiani Jr
1

votes
0

answer
37

Views

I am using ngx-bootstrap datepicker if i type a number, its automatically formatiing

I am using bootstrap date picker if i type a number, its automatically formatting(force parse). So,how can i false 'force-Parse' in bootstrap date picker. if i'm giving four digit or five digit(11111)when focus-out its automatically formatting like '11/11/0001'.so i'm want to disable force-pars...
Senthil Vel
1

votes
2

answer
50

Views

TimePicker Component value not populating in view

Initially while selecting the time onchange working properly. this.state = { driverReportingTime: '' } handleTime(event, time) { this.setState({ driverReportingTime: time }) } In the View mode If I want to populate the saved Time response in Screenshot The time is not populating. Please let me know...
user9883888
1

votes
1

answer
97

Views

Cannot use bootstrap-datetimepicker

I want to include datetime picker in my template but having done this tutorial http://www.lisenme.com/date-time-picker-input-field-using-bootstrap/ my css and js files still cannot be found by django. in template: and the error: Not Found: /js/bootstrap-datetimepicker.min.js Not Found: /css/bootstra...
superuser
1

votes
1

answer
76

Views

Issue calculating sleep time with moment.js and react native.

Detailed screenshot of issues I'm trying to calculate sleep time in react native using moment.js and this datetime picker. When I try it, the result is always 0 which is not correct. This is the format that I'm using from moment.js: moment.duration(moment(this.selectedEndDateTime).diff(moment(this.s...
ericm21
1

votes
1

answer
196

Views

Tempus Dominus without an input field

This sample code is not working: $('#idbtn').datetimepicker();
Pierre-Jean Coudert
1

votes
0

answer
101

Views

TempusDominus Bootstrap4 mix multiple configuration of multiple instances

If I use 2 different instances of TempusDominus Bootstrap4 with different configurations, the result is a mixed UNEXPECTED new configuration for both instances This is an examples code: Periodo $(function() { $('#datetimepicker1').datetimepicker({ useCurrent: false, format: 'MMMM YYYY'}); $('#Peri...
CyberGuerro
1

votes
0

answer
118

Views

Tempus Dominus allowMultiDate incorrectly places current date into input field

I am trying to implement a multidate input with Tempus Dominus. I set the picker to display a month or so in advance. I have useCurrent set to false. When I select a date from the picker a month or so in advance the current date is inserted also and the picker pane jumps back to current dates month...
James McDonald
1

votes
1

answer
137

Views

Angular matDatepicker locale fail typing in input box

If I use a datepicker as in and set a locale as in providers: [ { provide: LOCALE_ID, useValue: 'it-IT' }, { provide: MAT_DATE_LOCALE, useValue: 'it-IT' }] it works if the user select date from picker, but if he types inside the input box the date is not parsed in the right way. Eg: the Italia...
user2959635
0

votes
1

answer
19

Views

How to change view of bootstrap-datetimepicker to show days when the format includes time?

I am using bootstrap-datetimepicker to allow users to filter dashboard content by date. The datepicker is formatted as 'YYYY-MM-DD hh:mm:ss', it needs to be in this format. The problem is when I click on the element, the view mode is showing a time selector. I need it to show the days instead. I tri...
Michael
1

votes
2

answer
64

Views

Button can be enabled only if textbox AND datetimepicker is filled

[Edited Version based on replies] I would like the button1 to be enabled only if both textbox and datetimepicker are filled. I am able to do for the text but not for datetimepicker. Here is my full code. FYI: my datetimepicker is being formatted to empty initially to allow user to choose a date hims...
masyita shariff
1

votes
1

answer
78

Views

Bootstrap datetimepicker does not open

I am using two calendars on the page, start and end dates, using Bootstrap date time picker. Oddly, it works fine when run locally from within Visual Studio 2017; but when deployed clicking text box or icon has no effect. I checked for similar problem online and tried all suggestion: using class nam...
NoBullMan
1

votes
0

answer
27

Views

Conceptual custom angular DateTimePicker question

I was asked to develop a custom date time picker with angular. My first thought was to develop a custom component, which would have a single input type text element and a div which would be invisible (this div would contain the calendar, hours, cancel and apply buttons). When user focus on the input...
Bruno Miguel
1

votes
1

answer
102

Views

catch value on event emit from child component in parent component

I have a component vue-datetimepicker that has the following : export default { name: 'vue-datetimepicker', data () { return { value: '' } }, watch: { options: function (options) { // update options $(this.$el).datetimepicker({ data: options }) } }, mounted: function () { var vm = this var mycomp =...
Ciasto piekarz
1

votes
0

answer
37

Views

Can I block some dates in the django calender datepicker

I am trying to design a self-scheduling meeting page using Django. I am planning to use DateTime picker and show the available time slots to book. In datepicker how can I block the unavailable time slots? I have check DateFromToRangeFilter filter etc. Seems like these functionalities cannot satisfy...
Divya M
1

votes
1

answer
40

Views

Read custom format in datetimepicker c#

I want to do dateTimePicker to choose and read only year. This is my code, but when on third row where is dateTimePicker1.Value it's someone else because when i open file is show me hour, date, month and year. I trying to change value with customformat but make me mistake and want to change to str...
yoanna.d
1

votes
0

answer
28

Views

Can I use a datepicker variable in Calculation?

Using a datetime picker and get time in Milli using it get period fro two date pickers. I have two DatePickers based on user input data is stored in Calendar variable to display in a textview. LocalDate today = firstdate; LocalDate secondDate = userpicked date; Period p = Period.between(today, secon...
Fathead
1

votes
0

answer
56

Views

How to change the date and time depending upon the timezone selected?

dispalys the timezone in dropdown ....... bootstrap datetimepicker I have one dropdown in which all the time zones are displayed. I have one bootstrap datetimepicker. onselect of time zone in first dropdown, the date and time in datetimepicker need to change depending upon the timezone selected. Th...
mani teja
1

votes
1

answer
127

Views

Bootstrap 4 DateTimePicker Multidate not working

I am trying to get Bootstrap 4 DateTimePicker working allowing the selection of multiple dates. My code below works if I remove the 'multidate: true' line in the script. But when that line is there the date picker doesn't even display. Can anyone tell me what I'm doing wrong. Here's is minimal code...
Steven Lord
1

votes
0

answer
30

Views

What is the propper way to polyfill datetime-local in react?

Firefox and Safari lacks the support of HTML5 input of type datetime-local,is there a way to use a polyfill so these inputs can be properrly used without the usage of a custom date time picker ? the used input can be found here.
Ahmad R
1

votes
0

answer
55

Views

Datetimepicker for ham fingered employees :)

Has anyone found a decent datetimepicker that works for touch based applications?,mainly the calendar that pops up when selected. Or have another idea of a way i can capture dates/date ranges utilizing touch inputs with a better UI experience. Background: i have an app at work which uses a windows...
Daniel Jee
1

votes
2

answer
485

Views

NETCF DateTimePicker control problem running on hardware

I have been developing a compact framework app on an emulator, and some of the forms use DateTimePickers. These work fine in the emulator, but when running on the hardware they cause the form to close when a date is selected. No exception is thrown...the form just closes unexpectedly. Has anyone...
Scott Anderson
1

votes
1

answer
676

Views

Set background of DateTimePicker

How can I fill the background of drop down calender of a DateTimePicker with gradients?
Sauron
1

votes
2

answer
1.1k

Views

Databound DateTimePicker fires validation error

I have a databound DateTimePicker: dateDateTimePicker.DataBindings.Add(new Binding('Value', paymentBindingSource, 'Date', true); paymentBindingSource.DataSource = payment; payment is Entity Framework object. payment.Date contains valid DateTime. When form is shown, dateDateTimePicker contains correc...
wRAR
1

votes
2

answer
8.5k

Views

DateTimePicker: How will I handle if the user clicked/selected date in the popup calendar or not?

I noticed that C#'s DateTimePicker is changing the date automatically when I'm changing Month or Year. So what I did is to override the ValueChanged and it is only fired when the CloseUp event is raised. The problem now is I need an event if the user actually selected date in the calendar or the use...
Marc Vitalis
1

votes
1

answer
4.1k

Views

DateTimePicker: Selecting a range of hours within a single day only

I'm looking for a way to use two DateTimePicker controls to select a range of hours and minutes within one day. That is, to basically select a 'starting time' and 'ending time'. I started with two DateTimePicker controls with the custom format of h:mm tt. I tried adding (on ValueChanged), a check th...
Jake Edwards

View additional questions