public class MustDate
extends java.sql.Date
Constructor and Description |
---|
MustDate(int year,
int month,
int day)
Constructs a new (SQL) date.
|
MustDate(java.lang.String dateString)
Constructs a new (SQL) date.
|
Modifier and Type | Method and Description |
---|---|
static long |
getTime(java.lang.String dateString)
Returns the time value of a date String in format YYYY-MM-DD.
|
static boolean |
isEqualDayRegardlessTime(java.sql.Date date1,
java.sql.Date date2)
Compares two date values checking if it' the same day regardless the time.
|
getHours, getMinutes, getSeconds, setHours, setMinutes, setSeconds, setTime, toInstant, toLocalDate, toString, valueOf, valueOf
public MustDate(int year, int month, int day)
year
- the year of the datemonth
- the month of the date as written (1...12)day
- the day of the monthpublic MustDate(java.lang.String dateString)
dateString
- the date as String in format YYYY-MM-DDpublic static long getTime(java.lang.String dateString)
dateString
- the date as String in format YYYY-MM-DDpublic static boolean isEqualDayRegardlessTime(java.sql.Date date1, java.sql.Date date2)
date1
- the first datedate2
- the second dateCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de