What is the most elegant way to get ISO 8601 formatted presentation of the current moment, UTC? It should look like: 2010-10-12T08:50Z.

Example:

String d = DateFormat.getDateTimeInstance(DateFormat.ISO_8601).format(date);
``

23 Answers
23

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *