bootstrap-datetimepicker

Bootstrap datetimepicker only month and year not working as intended

穿精又带淫゛_ 提交于 2019-12-04 01:57:59
问题 My Datetime picker works on the fist click, but if I click again in the input field again it shows the picker with the day field. How can I do this? Any help will be appreciated. This is the image in first click (expected behavior) This is the image in second click (expected behavior is to come like to the first one) My code is below HTML <div class='input-group' id='dpRM'> <input type='text' class="form-control form-control-1 form-input input-sm fromq" placeholder="Enter Month and year" />

g.size() is not a function - Jquery Error

*爱你&永不变心* 提交于 2019-12-03 23:55:55
I have been trying to use bootstrap datetimepicker and have all the components on my scripts like Moment JS, bootstrap-date-time js, and bootstrap js but I am getting g.size() is not a function error. I am trying to run the following function $(function(){ $('#datetimepicker').datetimepicker(); }); kris I had the same error as you, and I could not find a solution for it anywhere. In fact the only reference to the g.size() is not a function error was this question, at the time with only a single down vote. My solution was to find a different datetime picker that actually worked I found this one

DatePicker Editor Template

半城伤御伤魂 提交于 2019-12-03 17:09:53
Below is an EditorTemplate that renders a Bootstrap datetimepicker with EditorFor helpers, the problem I am seeing is with the script section. It works OK for one DateTimePicker per view - but since I am using class selector, whenever I use 2 or more DateTimePicker s per view it renders duplicate <script> sections, confusing the DOM as to on which TextBox to invoke the calendar. What am I missing here? @model DateTime? <div class='input-group date datePicker'> <span class="input-group-sm"> @Html.TextBox("", Model.HasValue ? Model.Value.ToString("d") : String.Empty) </span> </div> <script type=

How to set time picker only set time from 8:30 am to 8:30 pm in bootstrap-datetimepicker.js?

怎甘沉沦 提交于 2019-12-03 05:04:27
HTML CODE: <div class="form-group"> <label class="col-md-3 control-label" for="event_date">Start at</label> <div class="col-md-8"> <input id="event_start_date" name="event_start_date" type="text" placeholder="" class="form-control input-md event_date" required=""> </div> </div> <div class="form-group"> <label class="col-md-3 control-label" for="event_date">End at</label> <div class="col-md-8"> <input id="event_end_date" name="event_end_date" type="text" placeholder="" class="form-control input-md event_date" required=""> </div> </div>` JavaScript code: $('#event_start_date').datetimepicker({

Time picker going behind the twitter bootstrap modal

一世执手 提交于 2019-12-02 19:29:26
问题 I am using bootstrap date-time picker in my Java Spring MVC web application to select date and time separately. I have included the CSS and scripts required. my HTML code would be as follows: <div class="form-group"> <label class="col-lg-2 control-label">Start</label> <div class="col-lg-10"> <div class="row"> <div class="col-sm-6"> <!--Bootstrap Datepicker : Component--> <div id="dripCampaignStartDate"> <label class="control-label" for="startDate">Start Date</label> <div class="input-group

bootstrap datetimepicker installation

半世苍凉 提交于 2019-12-02 17:40:29
问题 I am using bootstrap datetimepicker version 3. Here datetimepicker de-faulty taking current date and time. But in next version this problem is resolved. So I will try to use Eonasdan bootstrap datetimepicker version v4. For that what are the js and css files I have include in my jsp page? 回答1: Check manual installation guide here. You must include: jQuery Moment.js Bootstrap + collapse + transitions So the files needed would be: bootstrap.min.js bootstrap.min.css moment-with-locales.js

bootstrap datetimepicker installation

主宰稳场 提交于 2019-12-02 09:40:22
I am using bootstrap datetimepicker version 3. Here datetimepicker de-faulty taking current date and time. But in next version this problem is resolved. So I will try to use Eonasdan bootstrap datetimepicker version v4. For that what are the js and css files I have include in my jsp page? Check manual installation guide here . You must include: jQuery Moment.js Bootstrap + collapse + transitions So the files needed would be: bootstrap.min.js bootstrap.min.css moment-with-locales.js bootstrap-datetimepicker.css bootstrap-datetimepicker.js Check this fiddle for a working example. HTML: <br/> <!-

How to restrict user to input data using datetimepicker and disable manual user input?

廉价感情. 提交于 2019-12-02 06:17:37
问题 I want to restrict the user to only input data using the datetimepicker. Below is the code I am using: <div class="form-group"> <label>Start</label> <div class="input-group date" id="dtp1"> <input type="text" id="txtStart" class="form-control" readonly="readonly"/> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> </div> </div> $('#dtp1').datetimepicker({ format: 'DD/MM/YYYY HH:mm A', daysOfWeekDisabled: [0, 6] }); I have tried using the readonly

jQuery bootstrap-datetimepicker change event

不羁岁月 提交于 2019-11-30 11:20:15
I am using bootstrap-datetimepicker plugin from Jonathan Peterson on my project. I'm having a problem with change event : If I define event like this : $('#Release').on('dp.change', function(e){ console.log(e.date()); }) I get the error : Uncaught TypeError: e.date is not a function Anyone knows how to get new date value on change event ? Looking at that link, it appears you are very close. You need to remove the parenthesis to get the right value.The way you currently are trying to log the value makes the browser think it needs to call a function. $('#Release').on('dp.change', function(e){

Bootstrap-Datetimepicker Not working

江枫思渺然 提交于 2019-11-29 18:57:46
问题 I have been looking at this for 2 days, and cant figure out what I am doing wrong. Here is a fiddle with my project. http://jsfiddle.net/dagger2002/RR4hw/ Here is the HTML <div class="container"> <div class="col-sm-6" style="height:75px;"> <div class='col-md-5'> <div class="form-group"> <div>Start</div> <div class='input-group date' id='startDate'> <input type='text' class="form-control" name="startDate" /> <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span> <