I have instances of GregorianCalendar and you need to use SimpleDateFormat (or maybe something that can be used with a calendar, but which provides the required #fromat () function) to get the desired result. Please offer to work as well as permanent solutions.
java date formatting calendar simpledateformat
Denys S. Apr 11 2018-11-11T00: 00Z
source share