private String long2string ( Long value , DateTimeFormat fmt ) { // for html5 inputs, use "" for no value if ( value == null ) return "" ; Date date = UTCDateBox . utc2date ( value ) ; return date != null ? fmt . format ( date ) : null ; }
Formats the supplied value using the specified DateTimeFormat .