public class DateUtil extends Object
public static DateUtil getInstance()
public void resetFormats()
public static Timestamp getCurrentTimestamp()
public static Timestamp getTimestampExpiredYear(int offsetYear)
offsetYear - public static Timestamp getCurrentTimestampExpiredMonth(int offsetMonth)
offsetMonth - public static Timestamp getCurrentTimestampExpiredDay(int offsetDay)
offsetDay - public static Timestamp getCurrentTimestampExpiredSecond(int offsetSecond)
offsetSecond - public static Timestamp getTimestampExpiredDay(Date givenDate, int offsetDay)
offsetDay - public static Timestamp getTimestampExpiredMonth(Date givenDate, int offsetMonth)
offsetMonth - public static Timestamp getTimestampExpiredSecond(Date givenDate, int offsetSecond)
offsetSecond - public static Timestamp getTimestampExpiredHour(Date givenDate, int offsetHour)
public static String getCurrentDay()
public static String getNowTime()
Copyright © 2018. All rights reserved.