I need a DatePicker that can only show month and year as the available choice.
I found that it is possible to go one up when i'm in the choose section.
Is there a possible solution to lock the DatePicker at that?
Related
Currently Im developing an datepicker from hackerone react datepicker, where user can select date from day up to decade, but I didnt find any props in DatePicker component at their website to give user opportunity to select decade, maximum is a year selection. I decided to put prop yearItemNumber={100} so it will give a range of 100 years, but how can I combine 10 years into one option as it show in first screen?
How it may look:
What I have:
Also additional question, how can I display a century in datepicker header? Or its just a hardcoded text
I'm using react-day-picker DayPicker (not DayPickerInput) and have an existing element I want to use to drive the date popup. I can't figure out how to pre-feed the date from the element to the calendar and highlight the given date. All the other functionality, e.g. capturing the user chosen date and populating the element are working fine. So if my input element has Nov 11, 2019, and I click on it, I want the popup to go to that date and show it as selected. The current behavior is that it shows the current month and date. I've tried to set the selectedDays={this.state.selectedDay}, but that doesn't seem to work. Note that I am new to reactjs, and this could be the gap in my understanding.
Thanks for any suggestions you may have.
Found at least one way to achieve the behavior I was looking for. There is a DayPicker property "initialMonth" that will display the current month. Note that this only needs to be populated only with year and month:
initialMonth = {new Date(selectedDate.getFullYear(), selectedDate.getMonth())}
My requirement is to have some relative date support in my date picker and I want to select start and end date from wpf date picker. But picker showing single calendar and i couldn't achieve two date selection.i have gone through some sites but couldn't get clear answer.
Is it possible to achieve my requirement in WPF date picker or any custom template available for this?
Thanks,
Indrajeyan.
I would like to scroll using the arrow keys through the day month and year fields in the datepicker textbox.
I am guessing this will be a two step solution:
1- break up month day year into individual fields that the user 'clicks' into.
2- once the user has focus of the either day year or month then they can use arrow keys to scroll up /down.
anyone done this before with wpf?
Found this project has a date time with up / down:
http://wpftoolkit.codeplex.com/
Is there any property , option available in the date picker control so that if user want to select today from any date from current date ?
e.g if user is view current month of last year then he has the option to select current date ?
just see this link and how they are implementing the Today button in the Datepicker WPF Toolkit). This link is from the WPFToolkit discussion forum. May be this will help you.
http://wpf.codeplex.com/Thread/View.aspx?ThreadId=85516
i think there is no option that there is a button directly in the control.
You can use a button outside the control, or something like this to set the current date.
Or you build a custom control....
I just hacked together a simple example. It is VS 2010. www.mbgr.de/CurrentDateWpf.zip.
No warranty at all on this one. Use at your own risk :-)