Extract date from first string line of file