datetimepicker

Bootstrap 3 Datetimepicker with Rails form_for

本秂侑毒 提交于 2019-12-12 17:07:27
问题 I am a new Rails developer and I am having trouble using the bootstrap3 datetimepicker together with my rails form_for to save to a DateTime attribute in my ScheduledAccess Model. The one I am using is from http://eonasdan.github.io/bootstrap-datetimepicker/ Code: .form-group = f.label :start_time datetimepicker1.input-group.date = f.text_field :start_time, class:"form-control", id:"scheduled_access_start_time" span.input-group-addon span.glyphicon.glyphicon-calendar .form-group = f.label

jQuery Datetimepicker - change minDateTime and maxDateTime on click?

*爱你&永不变心* 提交于 2019-12-12 12:26:59
问题 I'm using the excellent Trent Richardson datetimepicker addon to the jQuery UI datepicker. I have rows of data with two instances of the picker on each row, one for the start and one for the end time of a process. When my user clicks one, I'd like to reset the min or max datetime element based on the value of the other box - in other words, limit the end time based on the start time and the start time based on the end time (to prevent the user from starting after end or ending before start).

How to change/set DateTimePicker value

你说的曾经没有我的故事 提交于 2019-12-12 10:38:41
问题 I am trying to set / change the DateTimePicker value (using vb.net) but can't work out how to do it. I have added the control to the page and I have tried using the following code but it doesn't work and I can't work out how to set the value during run-time. DateTimePicker1.Value = Now.Day & "-" & Now.Month & "-" & Now.Year The format of the control is set to Long and it looks like this when first loaded: Tuesday, February 26, 2013 But I can't work out how to change it. The error I get based

Datetime filter in kendo grid

余生颓废 提交于 2019-12-12 08:37:42
问题 My code is in C# .NET I am using Kendo Grid version 2013.2.716.340 and server binding to show data in grid. In Kendo UI Grid, I have a dateTime column but the column filter input only has a date picker but no time picker. Due to this if I select the option IsEqualTo and give a date then I get zero results as the time is set to 00:00:00 in the filter but the columns have some time value. I want to add time picker along with date picker. I tried to do this on my column, but it didn't work:

DateTimePicker start on year

一个人想着一个人 提交于 2019-12-12 05:26:39
问题 There are several QAs here about formatting C# DateTimePickers, but none seem to address this aspect: The default behavior is when the user clicks the DateTimePicker dropdown he starts at the one-month view, with a scroll bar on top to page through one month at a time. From the UI, you can move up to year level, but my operators are not local or intuitive with control use. I'm requesting that the user enter data that spans 10 years (date of manufacture for some product). I want to start at

bootstrap3-datetimepicker doesn't always work as expected

断了今生、忘了曾经 提交于 2019-12-12 04:48:02
问题 I am using meteor-bootstrap3-datetimepicker. Below is where I am using the date picker: <form id="addAppointment" style="display:none"> <div class="row"> <div class="col-sm-8 col-lg-8 col-md-8"> <div class="form-group"> <input id="dateTimeTextField" type="text" class="form-control datetimepicker" data-DateTimePicker name="appointment" placeholder="Pick a Date"> </div> </div> <div class="col-xs-4"> <div class="form-group"> <a id="adjustDateTime" class="btn btn-success btn-outline btn-block"

Why timepicker can not be downgraded when choosing a date other than today?

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:15:46
问题 My html code like this : <div class="container"> <div class="row"> <div class='col-sm-6'> <div class="form-group"> <input type='text' class="form-control" id='datepicker' data-date-format="DD-MM-YYYY" /> </div> </div> <div class='col-sm-6'> <div class="form-group"> <input type='text' class="form-control" id='timepicker' data-date-format="HH:mm" /> </div> </div> </div> </div> <button id="btnSubmit"> Submit </button> My JavaScript code like this: $(function () { $('#datepicker').datetimepicker(

Using Telerik MVC grid, editing row blanks TimePicker and DateTimePicker

元气小坏坏 提交于 2019-12-12 03:26:36
问题 I have a Telerik grid populated by an Ajax command similar to the following: PowerStatusGrid.cshtml @{Html.Telerik().Grid(Model) .Name("PowerStatusGrid") .DataKeys(k => k.Add(o => o.StatusItemId)) .Columns(columns => { columns.Bound(o => o.ItemName).Title("Name").Width(250).ReadOnly(true); columns.Bound(o => o.DateTimePicker).Title("Date/Time").Width(150); columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.BareImage).HtmlAttributes(new { @class = "grid-edit-button" })

How to change current server calendar date to another calendar date in php?

筅森魡賤 提交于 2019-12-12 03:24:48
问题 I'm gonna change current date to new date in php, In following code current date shows on page in Persian calendar, but it doesn't change real Gregorian date. For example: If we stored date: 2015-01-03 in database, this code convert this date to new date in Persian Calendar and it will show it on page. public static function localDate($date = "") { $local = ""; switch (strlen($date)) { default: // Ymd { if (( $date < '19700101')) { $local = $date; break; } else { header('Content-Type: text

Rails 4 x Bootstrap 3 Datetimepicker: replace default datetime_select with datetimepicker

眉间皱痕 提交于 2019-12-12 02:45:52
问题 In my Rails 4 app, which already uses Bootstrap 3, I just added Datetimepicker by eonasdan. I carefully followed the instructions offered here and there to install the plugin. Here is my setup: Gemfile gem 'momentjs-rails' gem 'bootstrap3-datetimepicker-rails' application.js //= require jquery //= require jquery.turbolinks //= require jquery_ujs //= require bootstrap //= require bootstrap/dropdown //= require moment //= require bootstrap-datetimepicker //= require turbolinks //= require_tree