Seems there is DateTimeFormatter.parse(CharSequence) method in Java 8's java.time
package. Overlooked it.
Is there a way to parse Date from StringBuilder?
-
22-07-2023 - |
Pregunta
I want to parse Date
from StringBuilder
without conversion to String
.
SimpleDataFormat.parse(String)
implementation use only CharSequence
methods, length()
and charAt()
, but defined as defined.
Is there simple (standard) way to do this, except copying the whole SimpleDateFormat
class, for example?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow