Search the file.log located in the path /path/to/file.log for lines that start with a 4 digit number followed by a hyphen, 2 digit number, hyphen, and 2 digit number.
grep -P "^[0-9]{4}-[0-9]{2}-[0-9]{2}" /path/to/file.log