Quantcast
Channel: Java Formatting Date String - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

Java 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
Browsing latest articles
Browse All 3 View Live




Latest Images