Package org.loboevolution.util
Class DateUtil
java.lang.Object
org.loboevolution.util.DateUtil
DateUtil class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetermineDateFormat
(String dateString, Locale loc) Determine SimpleDateFormat pattern matching with the given date string.
-
Constructor Details
-
DateUtil
public DateUtil()
-
-
Method Details
-
determineDateFormat
Determine SimpleDateFormat pattern matching with the given date string. Returns null if format is unknown. You can simply extend DateUtil with more formats if needed.- Parameters:
dateString
- The date string to determine the SimpleDateFormat pattern for.loc
- aLocale
object.- Returns:
- The matching SimpleDateFormat pattern, or null if format is unknown.
- See Also:
-