Try using date formats such as

TempW(1,1) = "2004-01-31"