Extract date from first line string