How to get day of the month?

后端 未结 9 1704
南笙
南笙 2020-11-30 05:48

I am trying to retrieve which day of the month it is.

Such as today is August 29,2011.

What i would like to do is just get the days number such as 29, or 30.

9条回答
  •  误落风尘
    2020-11-30 05:49

    //This will get you the day of the month
    String.valueOf((Calendar.getInstance()).get(Calendar.DAY_OF_MONTH))
    

提交回复
热议问题