Skip to content

Only Month and Year #199

Closed Answered by BlakeTNC
DarrylCD asked this question in Q&A
Nov 12, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello Darryl, This is a use case that I don't think was ever considered when the LGoodDatePicker library was written. So I don't think it exists. It might be possible for an interested programmer to add it to the library, but I don't think I would recommend it. It's kind of outside of the scope of what the library was written for. This library is intended to give a LocalDate as the final data result, and not a YearMonth variable. So it seems to me that it might be an almost unrelated usage.

If I needed that functionality, I might implement it something like this. I would create a drop-down with all 12 months on it. And I would either create a second drop-down to the right with nearby year…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DarrylCD
Comment options

Answer selected by DarrylCD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants