I have a date in a String
:
String string = "16.03.2017, 09:22";
I'm trying to convert it to a Date
.
Locale russianLocale = new Locale.Builder().setLanguage("ru").setRegion("RU").build();
Date date = new SimpleDateFormat("DD.MM.YYYY, HH:mm",russianLocale).parse(string);
No matter what value I give to this function, it prints date "Mon Dec 26 09:22:00 MSK 2016". The time value is current, but the date is always the same.
How is this caused and how can I solve it?