Quantcast
Channel: Java Formatting Date String - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Bohemian for Java Formatting Date String

$
0
0

Why bother with Dates... just use Strings:

String output = input.replaceAll("(....)(..)(..)", "$3.$2.$1"); 

or

String output = input.replaceAll("(....)(..)(..)", "$3.$2.$1 00:00:00"); 

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>