类 DateUtil


  • public class DateUtil
    extends Object
    • 构造器详细资料

      • DateUtil

        public DateUtil()
    • 方法详细资料

      • TimestampToDate

        public static Date TimestampToDate​(String strDate)
        Transfer timestamp to class java.util.Date
        参数:
        strDate - timestamp
        返回:
        The Date object if succeed, current date if failed
      • DateToString

        public static String DateToString​(Date date,
                                          String pattern)
        Transfer Date to String
        参数:
        date - Date object
        pattern - The pattern of the string
        返回:
        Converted String