Nothing Matters Jun 18, 2019 Nothing really matters anymore. There’s nothing worth anything. Here we live and here we always will be. Why should one bother with that which they cannot change? However, there are things in life which you have the ability to change and have control over. Change those things and you will be able to see something better in the future because of it.
For some reason my installation of Java wouldn't let me use SimpleDateFormat to format my dates. So I had to google a different way to do this and found the following works as well. The Date class has a bunch of issues with it to begin with, so this is much cleaner and better as well.
LocalDateTime ldt = LocalDateTime.now();
DateTimeFormatter df = DateTimeFormatter.ofPattern("MM/dd/yyyy", Locale.ENGLISH);
String formattedString = df.format(ldt);
Comments
Post a Comment