How to convert an Instant to a date format?
If you want to convert an Instant to a Date: And then you can use SimpleDateFormat for the formatting part of your question:
If you want to convert an Instant to a Date: And then you can use SimpleDateFormat for the formatting part of your question:
Your pattern does not correspond to the input string at all… It is not surprising that it does not work. This would probably work better: Then to print with your required format you need a second SimpleDateFormat: Notes: you should include the locale as if your locale is not English, the day name might not … Read more