parse the timestamp if it is present