I am using primefaces calendar. I want to select a week instead of selecting a day.
I found out it was possible in primefaces 2.0 to have an array of days in backbean instead of one date object. I am using version 4 and it is not possible anymore. I was thinking if i could use the week number as the pattern and use the popup calendar it will show the week number in the text field. However it worked first time i tried, but second time i want to choose a date it will only display "w". Is the anyway to make this work?
i was thinking to use a converter which convert the week number to a date because my theory is that calendar cant convert the week number to date by it self. I am not familiar using converters? I will appreciate any help.
<p:calendar value="#{bean.date}" locale="en" pattern="w">
Related
I'm looking for a possibility similar to the DatePickerDialog to select calendar weeks.
It is important that this also allows spanning calendar weeks (15-20).
The current rudimentary solution is a text field that the user fills in, but this creates a lot of potential for bugs.
Is there a way to modify the DatePicker accordingly? I haven't found much in the Android Developers documentation.
Final input should be possible in the format: 15-20, 23, 25-30. (representing calendar weeks)
i need to get the epoch time in milliseconds of the date selected by the user from my calendar view. I use the metod calendarView.getDate() and I pass the result in my retrofit request. When I get the date back and set it as date in the view using calendarView.setDate(milliseconds) the calendar goes to dates like the '70s and if i take the number and convert it into date format using a simple python program or an online converter it gives me like if it is 2030.
I tried to set the minDate of the calendar view to 01/01/1970 but it didn't changed. I won't share my code because i just used the two methods i said.
Thank you for helping me
I have a JSF form with 2 dates. Start Date is required.
2 things I would need:
When the End date is filled in --> Then the Days should be calculated and filled in.
When the Days are filled in (example: 31) --> Then the End date should be filled in.
How can this be done in JSF?
You might seen the same case as me, but what I looking for how calculate Days If Start Date Is Filled can someone help me please
Tapestry comes with Date picker, which is fine if you want to pick dates only.
However, I'm in need of selecting time as well (date and time filtering).
Due to specific reason, I am not allowed to use jQuery, which is unforutunate, because I've found this neat Date and Time picker: https://fgelinas.com/code/timepicker/
Is there a similar, but Prototype based Date and Time picker for Tapestry 5.3?
Take a look at Howard's tapx-datefield library. I've not used it myself but it claims to support date & time. I think it wasn't included in tapestry core because of license incompatability.
I need a solution to get the next Sunday's date, please no "Calendar" I am using GWT and it does not compile.. too many errors. I need an alternate solution... I am kind of new to java and have spent two days "just" trying to programatically get the next Sundays date.. Please help me (No Calendar Class please)
Regards
You want a perpetual calendar algorithm. Several are outlined here: http://en.wikipedia.org/wiki/Calculating_the_day_of_the_week