question: public static Long toMillisec ( String datestring , String format ) { Date date = parse ( datestring , format ) ; if ( date == null ) { return null ; } return date . getTime ( ) ; }
target:  Returns a long-millisecond value from a given string using the provided format.