datepicker

Angular DatePicker - Multiple directives > [datepicker, datepicker]

情到浓时终转凉″ 提交于 2019-12-23 22:22:34
问题 I'm trying to use the 720Kb datepicker. https://github.com/720kb/angular-datepicker While using the simple example : <datepicker> <input ng-model="date" type="text"/> </datepicker> I'm getting the blow error: angular.js:11655 Error: [$compile:multidir] Multiple directives [datepicker, datepicker] asking for new/isolated scope on: http://errors.angularjs.org/1.3.15/$compile/multidir?p0=datepicker&p1=datep…epicker%20class%3D%22datepicker%22%20date-format%3D%22dd%2FMM%2Fyyyy%22%3E at angular.js

Cannot add instance of type '%0' to a collection of type '%1' error in windows phone 8.1 DatePicker

谁说胖子不能爱 提交于 2019-12-23 21:42:06
问题 Hey I am developing an app in windows phone 8.1 using the MVVM pattern. I want to get the date from the DatePicker on the DateChanged event in the viewModel. After running the program I am getting this error: A first chance exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in App1.exe WinRT information: Cannot add instance of type '%0' to a collection of type '%1'. [Line: 117 Position: 97] An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in App1

WPF DatePicker LostFocus fires seven times

為{幸葍}努か 提交于 2019-12-23 20:56:24
问题 I have very simple scenario here. Look at layout, please: <Grid> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <TextBox Grid.Row="0"></TextBox> <DatePicker Grid.Row="1" Name="_datePicker" LostFocus="_datePicker_OnLostFocus"></DatePicker> </Grid> and codebehind: private void _datePicker_OnLostFocus(object sender, RoutedEventArgs e) { Debug.WriteLine("LostFocuse"); } So, trouble is when I pick up some date and click TextBox then,

DatePicker databinding sets default value to 1/1/0001 WPF c#

拈花ヽ惹草 提交于 2019-12-23 20:09:25
问题 I have a DatePicker bound to a DataTime within an object, and at run time, instead of the string "Select a Date" in DatePicker, "1/1/0001" is shown, making it hard to use the actual calendar. I did not have a problem when I was binding DatePicker with a string, but changing it to a DateTime did this. Please let me know how this works. This is what I have so far: In XAML I have: <DatePicker Grid.Column="4" Grid.Row="9" Name="dueDateBox" VerticalAlignment="Center"> <DatePicker.SelectedDate>

Inialize a jQuery textfield-datepicker w/ today's date in the format yyyy-mm-dd

隐身守侯 提交于 2019-12-23 19:58:51
问题 I'm using a jQuery datepicker attached to a text input. Is there a datepicker action that can inialize the text field w/ today's date (yyyy-mm-dd) when the page loads? 回答1: Initialize the datepicker with the date format and set the date - $( ".selector" ).datepicker({ dateFormat: 'yy-mm-dd'}) $( ".selector" ).datepicker( "setDate" , new Date()) 回答2: You can set a default date to a fixed or relative value: // Only necessary if you are sending data using a different format $( ".selector" )

Not able to disable past dates on vuejs-datepicker

蓝咒 提交于 2019-12-23 19:43:28
问题 I want to disable all past dates before "today". I am using vuejs-datepicker. vuejs-datepicker However it's not working nor there are any errors in the console log. I can still choose past dates. <datepicker v-model="date" :format="DatePickerFormat" :disabledDates="disabledDates"> </datepicker> data(){ return { date: '', DatePickerFormat: 'dd/MM/yyyy', disabledDates: { to: new Date(Date.now() - 8640000) } } } Am I doing something wrong? Update1: <template> <datepicker v-model="model.date"

How to catch the datePicker close event

梦想与她 提交于 2019-12-23 13:07:01
问题 I am using the date picker and it is working fine. Few of my web page need some calculation using the start and end date. I would like to be able to do the calculation when the datepicker close. I am using: < input class="datePicker" id="endDate" name="endDate" type="text" value="04/10/2013 23:00" /> Anybody have any suggestions? 回答1: You are looking for onClose method. Refer to API Documentation here 回答2: Simple. Just add your function into onClose event. Sample code is below. .datepicker({

Jquery UI datepicker closes on next().focus()

淺唱寂寞╮ 提交于 2019-12-23 12:53:16
问题 I need to select subsequently two dates from a datepicker widget, then I want to focus on the second when the first one is selected. I set it up like this: <input type="text" class="date" id="fromDate" name="fromDate"/> <input type="text" class="date" id="toDate" name="toDate"/> $("input.date").datepicker({ onSelect: function(){ $(this).next(".date").focus(); } }); But when I select the first date the second opens then closes the window... why? I saw that with onClose event works, but I don't

DatePicker not working inside a modal

半腔热情 提交于 2019-12-23 12:51:10
问题 I have a site and here is a link, When you click on textfield you can see the DatePicker working But iF you click on I mportFriend -> Add Manual Friend -> then if you click on birthday field the datepicker never appears.I can see through firebug that the field got the hasDatePicker attribute. I am not sure what making it not to show the datepicker,anyone who can help me please thanks 回答1: As @Bluetoft says, the answer is event delegation. The reason it's not working for you is because your

setMinDate() for DatePicker [duplicate]

廉价感情. 提交于 2019-12-23 12:01:07
问题 This question already has answers here : Setting MinDate on DatePicker moves CalendarView to 1964 (5 answers) Closed 6 years ago . I saw this question on stack overflow in several places, but the given answers does not work for me, so here I am :). I need to set a date picker's minimum date dynamically to the current date. My minimum API is 12. I tried this: Calendar minCalendar = Calendar.getInstance(); minCalendar.set(Calendar.MILLISECOND, minCalendar.MILLISECOND - 1000); DatePicker