/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.text.SimpleDateFormat;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String dateFromPicker
= "2016-12-12"; Date dateToSave
= df.
parse(dateFromPicker
);
//dla wyswietlania
String dateToShow
= df2.
format(dateToSave
);
System.
out.
println(dateToShow
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnRleHQuU2ltcGxlRGF0ZUZvcm1hdDsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU3RyaW5nIGRhdGVGcm9tUGlja2VyID0gIjIwMTYtMTItMTIiOwoJCVNpbXBsZURhdGVGb3JtYXQgZGYgPSBuZXcgU2ltcGxlRGF0ZUZvcm1hdCgieXl5eS1NTS1kZCIpOwoJCURhdGUgZGF0ZVRvU2F2ZSA9IGRmLnBhcnNlKGRhdGVGcm9tUGlja2VyKTsKCQoJCgkJLy9kbGEgd3lzd2lldGxhbmlhCgkJU2ltcGxlRGF0ZUZvcm1hdCBkZjIgPSBuZXcgU2ltcGxlRGF0ZUZvcm1hdCgiZGQvTU0veXl5eSIpOwoJCVN0cmluZyBkYXRlVG9TaG93ID0gZGYyLmZvcm1hdChkYXRlVG9TYXZlKTsKCQkKCQlTeXN0ZW0ub3V0LnByaW50bG4oZGF0ZVRvU2hvdyk7Cgl9Cn0=