$ date -s `curl -I 'https://google.com/' 2>/dev/null | grep -i '^date:' | sed 's/^[Dd]ate: //g'`
# -s, --silent
# Silent or quiet mode.
# Don't show progress meter or error messages.
# Makes Curl mute.
# It will still output the data you ask for.
curl
--output /dev/null
--silent
--write-out '%{time_namelookup}'
https://google.com