(No spaces around the equal sign!)
$() means it runs the date command in a subshell, and its standard output becomes a string that is assigned to the mydate variable.
The ""quotes protect the string from eventual word splitting or substitution - not needed in an assignment; you can omit them.