Convert a header datestring to seconds
expected format of the date-time string. Default format is YYYY-MM-DDThh:mm:ss.ff
date2seconds()