↧
Answer by Bohemian for Java Formatting Date String
Why bother with Dates... just use Strings:String output = input.replaceAll("(....)(..)(..)", "$3.$2.$1"); orString output = input.replaceAll("(....)(..)(..)", "$3.$2.$1 00:00:00");
View ArticleAnswer by aioobe for Java Formatting Date String
You could use SimpleDateFormat as followsSimpleDateFormat inputFormat = new SimpleDateFormat("yyyyMMdd");SimpleDateFormat outputFormat = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");Date date =...
View ArticleJava Formatting Date String
I need to convert this 20140815into 15.08.2014 and into 15.08.2014 00:00:00How do I do that, what opportunities are there in Java
View Article