Skip to content

Commit e2a22fa

Browse files
committed
Update DateUtilities.java
1 parent abf7f27 commit e2a22fa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/utils/DateUtilities.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,12 @@ public static String reformatDateString(String input, String outputFormat) {
276276
"Mdyyyy",
277277

278278
//Common International Formats
279-
"dd/M/yyyy", // Common in Europe
280-
"dd/MM/yyyy", // Common in Europe
279+
"dd/M/yyyy",
280+
"dd/MM/yyyy",
281281
"dd-M-yyyy",
282282
"dd-MM-yyyy",
283-
"d/M/yyyy", // Single-digit day
284-
"d/MM/yyyy", // Single-digit day
283+
"d/M/yyyy",
284+
"d/MM/yyyy",
285285

286286
//More variations
287287
"yyyyMdd",
@@ -308,9 +308,9 @@ public static String reformatDateString(String input, String outputFormat) {
308308
"d/M/yyyy",
309309
"d/MM/yyyy",
310310

311-
//Edge cases/less common
312-
"yyyyMMdd", //No Separators
313-
"yyMMdd", //No Separators
311+
//No Separators
312+
"yyyyMMdd",
313+
"yyMMdd",
314314
};
315315
for (String inputFormat : SUPPORTED_INPUT_FORMATS) {
316316
String formattedDate = reformatDateString(input, inputFormat, outputFormat);

0 commit comments

Comments
 (0)