/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.*;
import java.time.format.*;
import java.time.temporal.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String input
= "January 08, 2017"; DateTimeFormatter f = DateTimeFormatter.ofPattern( "MMMM dd, uuuu" , l );
LocalDate ld = LocalDate.parse( input , f );
String output
= ld.
format( DateTimeFormatter.
BASIC_ISO_DATE );
System.
out.
println( "ld.toString(): " + ld
); System.
out.
println( "output: " + output
);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLio7CmltcG9ydCBqYXZhLnRpbWUuZm9ybWF0Lio7CmltcG9ydCBqYXZhLnRpbWUudGVtcG9yYWwuKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgoKICAgIFN0cmluZyBpbnB1dCA9ICJKYW51YXJ5IDA4LCAyMDE3IjsKICAgIExvY2FsZSBsID0gTG9jYWxlLlVTIDsKICAgIERhdGVUaW1lRm9ybWF0dGVyIGYgPSBEYXRlVGltZUZvcm1hdHRlci5vZlBhdHRlcm4oICJNTU1NIGRkLCB1dXV1IiAsIGwgKTsKICAgIExvY2FsRGF0ZSBsZCA9IExvY2FsRGF0ZS5wYXJzZSggaW5wdXQgLCBmICk7CgogICAgU3RyaW5nIG91dHB1dCA9IGxkLmZvcm1hdCggRGF0ZVRpbWVGb3JtYXR0ZXIuQkFTSUNfSVNPX0RBVEUgKTsKCiAgICBTeXN0ZW0ub3V0LnByaW50bG4oICJsZC50b1N0cmluZygpOiAiICsgbGQgKTsKICAgIFN5c3RlbS5vdXQucHJpbnRsbiggIm91dHB1dDogIiArIG91dHB1dCApOwoKCgl9Cn0=