Skip to content

Commit ff56670

Browse files
authored
Merge pull request #31 from refractions-research/5xbugfixes
5.x bug fixes
2 parents 27f7760 + 44afae0 commit ff56670

File tree

1 file changed

+8
-0
lines changed
  • jeometry-common/src/main/java/org/jeometry/common/date

1 file changed

+8
-0
lines changed

jeometry-common/src/main/java/org/jeometry/common/date/Dates.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ static String format(final DateFormat format, final Date date) {
8787
return format.format(date);
8888
}
8989

90+
static String format(final DateTimeFormatter formatter, final LocalDate date) {
91+
if (date == null) {
92+
return null;
93+
} else {
94+
return formatter.format(date);
95+
}
96+
}
97+
9098
static String format(final int dateStyle, final int timeStyle, final Timestamp timestamp) {
9199
final DateFormat format = DateFormat.getDateTimeInstance(dateStyle, timeStyle);
92100
return format(format, timestamp);

0 commit comments

Comments
 (0)