Apply formatting
[proteocache.git] / datadb / compbio / cassandra / DateFormatter.java
index 471f2a8..2fa7708 100644 (file)
@@ -7,7 +7,7 @@ import java.util.Date;
 public class DateFormatter {
        private final static SimpleDateFormat formatYYMMDD = new SimpleDateFormat("yyyy/MM/dd");
        private final static SimpleDateFormat formatDDMMYY = new SimpleDateFormat("dd/MM/yyyy");
-       
+
        /*
         * convert String date into long date (miliseconds since the epoch start)
         */
@@ -24,10 +24,9 @@ public class DateFormatter {
                }
                return dateWorkSt;
        }
-       
+
        /*
-        * date validator
-        * true - if valid date, false - if invalid
+        * date validator true - if valid date, false - if invalid
         */
        public static boolean isThisDateValid(String dateToValidate, SimpleDateFormat sdf) {
                if (dateToValidate == null || dateToValidate.equals("")) {
@@ -43,7 +42,7 @@ public class DateFormatter {
                }
                return true;
        }
-       
+
        /*
         * convert date from long to String
         */
@@ -51,11 +50,11 @@ public class DateFormatter {
                String dateString = formatter.format(new Date(indate));
                return dateString;
        }
-       
+
        public static SimpleDateFormat getFormatYYMMDD() {
                return formatYYMMDD;
        }
-       
+
        public static SimpleDateFormat getFormatDDMMYY() {
                return formatDDMMYY;
        }