Approach to convert from org.joda.time.DateTime to java.util.Calendar

后端 未结 3 1421
攒了一身酷
攒了一身酷 2021-01-01 12:08

Anyone done this and can share? I see an option or two but want to know what others have accomplished.

3条回答
  •  伪装坚强ぢ
    2021-01-01 12:41

    in the 2.1 you can use

    public static Calendar parseCalendar(DateTime dt){
        return dt.toGregorianCalendar();
    }
    

提交回复
热议问题