Regex that matches date with the following format:
Regex that matches date with the following format:
yyyy-MM-dd
Regex that matches datetime with the following format:
Regex that matches datetime with the following format:
2018-01-01 00:00:45.100+0000
2018-01-01 00:00:45.100Z
2018-01-01T00:00:45Z
2018-01-01T00:00:45Z
2018-01-01T00:00:45
It doesn't check the validity of date, which means it can works on date like 9999-99-99 99:99:99
Parse a given date string with the given pattern to a java.sql.Date object
Parse a given date string with the given pattern to a java.sql.Date object
date string
format of the given date string
time zone of the given date string
Parse a given date string with the given pattern to a java.sql.Timestamp object
Parse a given date string with the given pattern to a java.sql.Timestamp object
date string
format of the given date string
time zone of the given date string
Parse and round a given date string with the given pattern to a java.sql.Timestamp object
Parse and round a given date string with the given pattern to a java.sql.Timestamp object
date string
format of the given date string
time zone of the given date string
From a given date or datetime string, retrieve the correct date format (with or without time)
From a given date or datetime string, retrieve the correct date format (with or without time)
Note: the maximum precision is 1 second
your date/datetime string
true to return a datetime, false to return only a date
true to return the last seconds of the given date, false to return the first second (this only takes effect when there is no time in the given input)
DateUtil