Package com.github.tadukoo.util.time
Class DateUtil
java.lang.Object
com.github.tadukoo.util.time.DateUtil
Date Util provides utilities for dealing with
Dates.- Version:
- Alpha v.0.2.1
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DateconvertToDate(LocalDate localDate) static LocalDateconvertToLocalDate(Date date) static DatecreateDate(int month, int day, int year) Creates aDatewith the given month, day, and year.static DatecreateDate(String month, int day, int year) Creates aDatewith the given month, day, and year.static DatecreateDate(Month month, int day, int year) Creates aDatewith the given month, day, and year.
-
Constructor Details
-
DateUtil
private DateUtil()Not allowed to make a DateUtil
-
-
Method Details
-
createDate
Creates aDatewith the given month, day, and year. -
createDate
Creates aDatewith the given month, day, and year.- Parameters:
month- The month as a stringday- The day of the monthyear- The year- Returns:
- A
Datefor the given month, day, and year
-
createDate
Creates aDatewith the given month, day, and year.- Parameters:
month- The month as an integer (1 = January)day- The day of the monthyear- The year- Returns:
- A
Datefor the given month, day, and year
-
convertToDate
-
convertToLocalDate
-