Use single quotation marks to represent literal text.
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss'00'");
See also:
Update : after a quick test this did not work. I suspect a jawadoc has revealed a corner case. In the end, you can just leave them.
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
Alternatively, you can also use Sto represent them in milliseconds. This will not affect the final result, since in any case it is equal to zero.
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmssS");
source
share