public static String format ( Date date ) { String format = LOCAL_DATE_FORMAT . format ( date ) ; // Java 6 does not have a convenient way of having the colon in the timezone offset return format . substring ( 0 , 22 ) + ":" + format . substring ( 22 ) ; }
Formats a date as a string that can be sent to the Box API .