Package com.github.tadukoo.util.time
Class DateUtil
java.lang.Object
com.github.tadukoo.util.time.DateUtil
Date Util provides utilities for dealing with
Date
s.- Version:
- Alpha v.0.2.1
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Date
convertToDate
(LocalDate localDate) static LocalDate
convertToLocalDate
(Date date) static Date
createDate
(int month, int day, int year) Creates aDate
with the given month, day, and year.static Date
createDate
(String month, int day, int year) Creates aDate
with the given month, day, and year.static Date
createDate
(Month month, int day, int year) Creates aDate
with the given month, day, and year.
-
Constructor Details
-
DateUtil
private DateUtil()Not allowed to make a DateUtil
-
-
Method Details
-
createDate
Creates aDate
with the given month, day, and year. -
createDate
Creates aDate
with the given month, day, and year.- Parameters:
month
- The month as a stringday
- The day of the monthyear
- The year- Returns:
- A
Date
for the given month, day, and year
-
createDate
Creates aDate
with 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
Date
for the given month, day, and year
-
convertToDate
-
convertToLocalDate
-