Formatting Timestamps in Java

前端 未结 4 1667
刺人心
刺人心 2020-12-11 00:12

Is there a way to format a UTC time into any arbitrary string format I want in java? Basically I was thinking of having some class take the timestamp and I pass it is strin

4条回答
  •  执笔经年
    2020-12-11 00:38

    Date instances are insufficient for some purposes.

    Use Joda Time instead.

    Joda time integrates with Hibernate and other databases.

提交回复
热议问题