question: @ Deprecated public String toISO8601 ( Date date ) { DateFormat df = new SimpleDateFormat ( ISO8601 ) ; df . setTimeZone ( TimeZone . getTimeZone ( "UTC" ) ) ; String formatted = df . format ( date ) ; return formatted ; }
target:  Convert Date to ISO 8601 String.