datetimepicker

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

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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(); }); 回答1: 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

How to disable past dates from today in bootstrap datetimepicker? [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: Bootstrap datetimepicker startDate does not disable past dates 3 answers Unable to disable the past dates in bootstrap datetimepicker HTML <br/> <div class="row"> <div class="col-md-12"> <h6>Datetimepicker</h6> <div class="form-group"> <div class="input-group date" id="datetimepicker"> <input type="text" class="form-control" /> <span class="input-group-addon"><span class="glyphicon-calendar glyphicon"></span></span> </div> </div> </div> </div> JavaScript $(function () { $('#datetimepicker')

Get date and time picker value from a single dialog fragment and set it in EditText

♀尐吖头ヾ 提交于 2019-12-03 02:54:14
问题 I am working on an application in which the user can set the date and time. I want to set the date and time in a single dialog fragment and set it to edit text. Is it possible to use a date and time picker in 1 dialog fragment? If it is, how do you do it? Currently I am getting the time from the dialog fragment and then setting it to the EditText . My code is LaterTextView=(TextView)findViewById(R.id.PickUp_later_TextView); LaterTextView.setOnClickListener(new View.OnClickListener() {

How to get only the date value from a Windows Forms DateTimePicker control?

徘徊边缘 提交于 2019-12-03 02:27:02
问题 I'm building an application with C# code. How do I get only the date value from a DateTimePicker control? 回答1: I'm assuming you mean a datetime picker in a winforms application. in your code, you can do the following: string theDate = dateTimePicker1.Value.ToShortDateString(); or, if you'd like to specify the format of the date: string theDate = dateTimePicker1.Value.ToString("yyyy-MM-dd"); 回答2: DateTime dt = this.dateTimePicker1.Value.Date; 回答3: I had this issue when inserting date data into

Bootstrap datetimepicker is not a function

匿名 (未验证) 提交于 2019-12-03 02:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use the datetimepicker from http://eonasdan.github.io/bootstrap-datetimepicker/ and I am getting the error "Uncaught TypeError: $(...).datetimepicker is not a function" Here are my includes: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.6/moment.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap

DateTimePicker AM/PM Dropdown

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm using (and loving) datetimepicker, the great add on to the jQuery UI Datepicker. However, I'm using the dropdown option (you can see all of them here -- http://trentrichardson.com/examples/timepicker/ ), and I want to have three dropdowns -- one for hours (1-12), minutes (00 to 60), and AM/PM. Right now, the hours field also has the am/pm, and I'm not sure how to add another dropdown to control the AM/PM. Here's my initialization: $ ( ".datepicker" ). datetimepicker ({ controlType : 'select' , timeFormat : "h:mm TT" , ampm :

eonasdan DateTimePicker autoclose doesn&#039;t work

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: If I removed the autoclose it works fine. How to autoclose datetimepicker. I've been searching on this but couldn't find useful information. $('#start_schedule').datetimepicker({ format: 'HH:mm', autoclose: true }); 回答1: It doesn't work actually according to documentation. If you will use showClose: true , it won't recognize, you will get an error. There is no other way rather than using this code in the docs. Hope this help. <div class="container"> <div class="row"> <div class='col-sm-6'> <div class="form-group"> <div class='input-group

How to detect bootstrap datetimepicker change events within angular2

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am using the bootstrap datetimepicker in angular 2 https://eonasdan.github.io/bootstrap-datetimepicker/ In my template i have: {{ date }} The problem is when I select a date on the calendar by click, it does not trigger any "change" event (in other words, ngModel is not fired). If i type in the text box, then the {{date}} shows me the value plus the text i typed. How can I detect changes on the text box if the user clicks on a date in the selector to change it? 回答1: The problem is that Angular doesn't know that the input's value

$(…).datetimepicker is not a function

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I use webpack and want to use bootstrap-datetimepicker . In my webpack config I use ProvidePlugin to get "jquery module". In my code I get error $(...).datetimepicker is not a function when I call $('#datetimepicker12').datetimepicker function. I don't why $ variable doesn't contain datetimepicker function, which should be defined in var datetimepicker = require('eonasdan-bootstrap-datetimepicker'); webpack.config.js var webpack = require('webpack'); var merge = require('webpack-merge'); var NpmInstallPlugin = require('npm-install-webpack

Disable some dates in datetimepicker winform c# [duplicate]

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This question already has an answer here: How do I disable some dates on a DateTimePicker control? 2 answers I need to disable some dates into DateTimePicker, is it possible? For example, I have a dates range: { 20/12/2014, 21/12/2014, 22/12/2014, 23/12/2014, 24/12/2014 } I need to disable the midle one or in others situations the last one, can anybody help me? The dateTimePicker1.MainDate and dateTimePicker1.MaxDate is not enough. Thank you. 回答1: Starting from .Net 4 it is possible in WPF. You can then host the WPF datepicker