Convert month name to number

0 Marin BeŇ°lo · October 20, 2016
Hello,

I have a date stored in a string like this:

String myDate = "21. October 2016.";


How can I convert that string so it looks like this:

21.10.2016.


??

Thanks :D

Post a Reply

Replies

Oldest  Newest  Rating
0 Bazza Cuda · November 13, 2016
Did you resolve this issue ? If you're using Java 8 you can create your own, very neat, formatter. No point explaining in detail though if you've already sorted it :)
0 Casper Hollemans · November 15, 2016
Here's the documentation for the formatter what Bazza Cuda mentioned
https://docs.oracle.com/javase/tutorial/datetime/iso/format.html
  • 1

Java / Android Development

113,819 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator