datepicker

VueJS Hotel Datepicker: issue in getting selected date via event listener

坚强是说给别人听的谎言 提交于 2019-12-13 00:47:56
问题 I am new to VueJS and trying to implement the vue-hotel-datepicker in my project. However, I don't understand how to use the checkInChanged event listener. This is my template code: <datepicker :startDate="startDate" :checkInChanged="setCheckinDate()" //probem occurs here :maxNights="30" :disabledDates="bookedDates" :firstDayOfWeek="1" :i18n="lang" :showYear="true" > </datepicker> My method: methods: { setCheckinDate() { console.log('test'); } } This event fires before I even select a check

DateTimePicker not working inside jqGrid. But it's working outside of it

ぃ、小莉子 提交于 2019-12-13 00:22:38
问题 I have a field in jqGrid where I want to use a dataTimePicker. I am using this plugin, http://plugins.jquery.com/datetimepicker/. I am able to create a dateTimePicker outside of the jqGrid as shown in the example in the site above. However, when I try to implement the datetimepicker inside of the jqGrid, it is not working. I am able to implement a datepicker inside of the jqGrid and it's working perfectly. Here's the code <script type="text/javascript"> $("#grid").jqGrid({ url: 'listJSON',

Enable only first and third wednesday for each month in Bootstrap Datepicker

ε祈祈猫儿з 提交于 2019-12-13 00:19:19
问题 Using the Bootstrap Datepicker, I'm trying to enable users to choose only first and third Wednesdays of each month. For now, the only thing I've managed to do is to enable only Wednesdays, by passing it in the options. Does anyone know if I can pass my "first and third" wanted configuration as an option, and how? <script type="text/javascript"> $(function () { $('.bootstrap-date-picker').datetimepicker({ locale: 'fr', daysOfWeekDisabled: [0,1,2,4,5,6], format: "ll", minDate: moment(), icons:

Protoplasm Date Picker : Issue with different datetime format

本秂侑毒 提交于 2019-12-13 00:17:40
问题 I am working an application having I18N support. In this application, based on user's locale user is prompted enters date time in locale specific format along with other details in a form. We have used protoplasm date time picker to select date time. Right now we are facing an issue with specific datetime format where the plugin shows wrong hours. Here is the html <html> <head> <script language="javascript" src="protoplasm.js"></script> <script language="javascript"> // transform() calls can

VueJS Datepicker: how to dynamically disable dates?

爱⌒轻易说出口 提交于 2019-12-12 23:06:12
问题 I'm implementing the vue-hotel-datepicker library into my project and I wish to dynamically add dates to the disabledDates property after making an ajax call, but my implementation does not seem to work. When I debug using the Vue devtools, I can clearly see that the disabledDates array contains my correct dates, it just does not render them as 'disabled'. It works when I hardcode those dates. Template: <datepicker :disabledDates="disabledDates" :firstDayOfWeek="1" > </datepicker> JS: data()

How to change the date from DD/MM/YYYY to YYYY-MM-DD using C#

拈花ヽ惹草 提交于 2019-12-12 22:26:14
问题 I am using DatePicker to select the Date. So after selecting the date, I should display it through a MessageBox . I can able to display it but it is in the format DD/MM/YYYY . And I want to display it in the format YYYY-MM-DD . So please can anyone help me to do the needful. Now I am displaying the date by using the code: string date1 = datepicker.ValueString; MessageBox.Show(date1); But I can display the current date format and display it as required by using code: string format = "yyyy-MM

jQuery UI DatePicker output date format

你。 提交于 2019-12-12 22:17:53
问题 I have inline jQuery UI DatePicker and need to customize format and look of output date, code: <div id="date-start"></div> <div class="date start" id="date-start-output"></div> $(function(){ // Datepicker $('#date-start').datepicker({ inline:true, showOtherMonths: true, altField: "#date-start-value", altFormat: "dd M yy", dateFormat: "dd M yy", onSelect: function(){ var day1 = $("#date-start").datepicker('getDate').getDate(); var month1 = $("#date-start").datepicker('getDate').getMonth() + 1;

jQuery UI datepicker within jquery-confirm dialog

你说的曾经没有我的故事 提交于 2019-12-12 21:47:53
问题 I'm using the jquery-confirm script from the link below. It has the capability to include a form field within a dialog box. You can see this by clicking on the "Act Like a Prompt" blue button at the link below. I've got the form (a single field) set up, but I want this input to be a datepicker, and I don't know where I should put the javascript to make this happen since this form doesn't exist until the dialog is generated. https://craftpip.github.io/jquery-confirm/ My dialog javascript: $('

Using JSlider to create a date chooser?

血红的双手。 提交于 2019-12-12 21:33:09
问题 I want to implement a date chooser using a JSlider. The user should be able to use the slider to freely choose between two previously known dates. I've seen examples like this one: But I want to do the same, using only one slider. The minimal distance between two points (tick) should be one day. Any hints how to implement that? 回答1: If you want to have a slider with min = 1.1.2012 and max = 10.1.2012 just create a slider with min = 0 and max = number of days in between, then add the selected

Knockout change while jQuery Datepicker is open breaks Datepicker

纵饮孤独 提交于 2019-12-12 21:07:23
问题 I've set up a jsFiddle to demonstrate my problem. What I'm doing : I'm using Knockout with a jQuery Datepicker as shown in this question. My model contains an observableArray which contains objects with date properties. Knockout renders an <input type="text"> for every object, and binds the value to the date using RP Niemeyer's datepicker binding. What's going wrong: If the user has a datepicker open when knockout's model changes (e.g., adding a new item), the datepicker stops working