Convert String month to integer java

后端 未结 2 1633
无人及你
无人及你 2021-01-15 15:03

How do I convert a month string to integer?

On click method I want to display the date which is selected but if the date has an event it should display something mo

2条回答
  •  清酒与你
    2021-01-15 15:44

    There are only 12 month, so just normalize the string and just do string comparison. I wouldn't try to over-optimize.

提交回复
热议问题