fix Issue 9775 - Can no longer create a const Date in CTFE if the variable is explicitly typed
Merge pull request #1824 from 9rnsr/fix9775

[REG2.062] Issue 9775 - Can no longer create a const Date in CTFE if the variable is explicitly typed