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