0
我有一種方法我必須使用來設置日期對象,在下面示出:日期對象設定
- 方法名(日期d)
現在這需要很長的構造似乎小技巧來處理, 所以我想聽聽您的意見,如果有人在那裏知道如何使它功能, 將同時指定年,月&也一天時間。????
我有一種方法我必須使用來設置日期對象,在下面示出:日期對象設定
現在這需要很長的構造似乎小技巧來處理, 所以我想聽聽您的意見,如果有人在那裏知道如何使它功能, 將同時指定年,月&也一天時間。????
您可以改爲使用calendar。它有日期和時間。
Calendar field access
Field Explanation
Calendar.YEAR Identifies the year
Calendar.MONTH Identifies the month
Calendar.DAY_OF_MONTH Identifies the day
Calendar.HOUR Identifies the hour
Calendar.MINUTE Identifies the minute
Calendar.SECOND Identifies the second