How would you represent date of birth in your java model?

后端 未结 6 689
孤城傲影
孤城傲影 2020-12-16 01:56

And wait, don\'t rush to answer \"java.util.Date\", consider the following scenario.

Person object having 2 fields: \"birthday\" and \"nextMeeting\" both java.util.D

6条回答
  •  情话喂你
    2020-12-16 02:29

    For manipulation i will advise java.util.Calendar

    For representation

    Birthday as java.util.Date
    NextMeetin as java.sql.Timestamp

提交回复
热议问题