Couldn't translate Date to spanish with Locale(“es_ES”)

前端 未结 5 841
别跟我提以往
别跟我提以往 2020-12-05 23:06

I\'m trying to do a simple date format, it does work great, it\'s very easy, but the problem is the language. I used the locale \"es_ES\" to get \"Miércoles\" instead of \"W

5条回答
  •  忘掉有多难
    2020-12-05 23:29

        Locale esLocale = new Locale("es", "ES");//para trabajar en español
        SimpleDateFormat formatter = new SimpleDateFormat(strFormatoEntrada, esLocale);//El formato con que llega mi strFecha más el lenguaje
    

提交回复
热议问题