Y
Y
Yasuro2018-12-09 23:12:03
Java
Yasuro, 2018-12-09 23:12:03

How to elegantly convert String to Calendar?

How to convert a string like this "Sun Dec 09 17:00:00 MSK 2018" to GregorianCalendar.
Is there really no beautiful way that can do this in a couple of lines?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2018-12-09
Hasanly @azerphoenix

Would something like this fit? https://stackoverflow.com/questions/5301226/conver...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question