Get-Date -Format returns a string.
This means that you are comparing the 2-letter string "18" with 9.
The operator -lt(like any other comparison operator in PowerShell), having seen the string as an argument of the left hand, will also try to convert the right argument to a string, so the comparison is effective:
"18" -lt "9"
"1" "9" , $true