The time of day when blood is taken can affect the results of tests for diagnosing dementia, according to new research.