diff --git a/src/fr/devinsy/util/DateHelper.java b/src/fr/devinsy/util/DateHelper.java index 1aa7513..2f09b92 100755 --- a/src/fr/devinsy/util/DateHelper.java +++ b/src/fr/devinsy/util/DateHelper.java @@ -20,10 +20,10 @@ public class DateHelper { //static private org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (DateHelper.class); - static final String EUROPEAN_DATE_FORMAT = "%02/%02/%04"; - static final String RAW_DATE_FORMAT = "%04%02%02"; - static final String ISO_DATE_FORMAT = "%04-%02-%02"; - static final String AMERICAN_DATE_FORMAT = "%02/%02/%04"; + static final String EUROPEAN_DATE_FORMAT = "%02d/%02d/%04d"; + static final String RAW_DATE_FORMAT = "%04d%02d%02d"; + static final String ISO_DATE_FORMAT = "%04d-%02d-%02d"; + static final String AMERICAN_DATE_FORMAT = "%02d/%02d/%04d"; static final String EUROPEAN_DATE_PATTERN = "^([0123]{0,1}\\d)/([01]{0,1}\\d)/(\\d\\d\\d\\d)$"; static final String RAW_DATE_PATTERN = "^(\\d\\d\\d\\d)([01]\\d)([0123]\\d)$"; diff --git a/src/fr/devinsy/util/DateTimeHelper.java b/src/fr/devinsy/util/DateTimeHelper.java index 81af9e9..0fc807f 100755 --- a/src/fr/devinsy/util/DateTimeHelper.java +++ b/src/fr/devinsy/util/DateTimeHelper.java @@ -15,10 +15,10 @@ public class DateTimeHelper { //static private org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (DateTimeHelper.class); - static final String EUROPEAN_DATE_FORMAT = "%02/%02/%04 %02:%02:%02"; - static final String RAW_DATE_FORMAT = "%04%02%02 %02:%02:%02"; - static final String ISO_DATE_FORMAT = "%04-%02-%02 %02:%02:%02"; - static final String AMERICAN_DATE_FORMAT = "%02/%02/%04 %02:%02:%02"; + static final String EUROPEAN_DATE_FORMAT = "%02d/%02d/%04d %02d:%02d:%02d"; + static final String RAW_DATE_FORMAT = "%04d%02d%02d %02d:%02d:%02d"; + static final String ISO_DATE_FORMAT = "%04d-%02d-%02d %02d:%02d:%02d"; + static final String AMERICAN_DATE_FORMAT = "%02d/%02d/%04d %02d:%02d:%02d"; static final String EUROPEAN_DATE_PATTERN = "^([0123]{0,1}\\d)/([01]{0,1}\\d)/(\\d\\d\\d\\d)$"; static final String RAW_DATE_PATTERN = "^(\\d\\d\\d\\d)([01]\\d)([0123]\\d)$";