private SimpleDateFormat getDateTimeFormatter ( ) { SimpleDateFormat formatter = new SimpleDateFormat ( ) ; formatter . applyPattern ( "yyyy-MM-dd'T'HH:mm:ss" ) ; formatter . setTimeZone ( TimeZone . getTimeZone ( "GMT" ) ) ; return formatter ; }
Method to get simple date format